]> www.infradead.org Git - users/hch/misc.git/commit
nvme: pass a void pointer to nvme_get/set_features for the result
authorChristoph Hellwig <hch@lst.de>
Tue, 6 May 2025 12:17:29 +0000 (17:47 +0530)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 May 2025 13:46:43 +0000 (07:46 -0600)
commit7a044d34b1e21fc4e04d4e48dae1dc3795621570
tree73318178c0aa787d68b23af2c749c08ebde48d7a
parentd4f8359eaecf0f8b0a9f631e6652b60ae61f3016
nvme: pass a void pointer to nvme_get/set_features for the result

That allows passing in structures instead of the u32 result, and thus
reduce the amount of bit shifting and masking required to parse the
result.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Nitesh Shetty <nj.shetty@samsung.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Link: https://lore.kernel.org/r/20250506121732.8211-9-joshi.k@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h