]> www.infradead.org Git - nvme.git/commit
nvmet: Use enum definitions instead of hardcoded values
authorDamien Le Moal <dlemoal@kernel.org>
Thu, 13 Feb 2025 06:50:00 +0000 (15:50 +0900)
committerKeith Busch <kbusch@kernel.org>
Tue, 18 Feb 2025 15:39:42 +0000 (07:39 -0800)
commit2ba8cf918f0d1873cd5430ae2cc3c41711a144d7
treeb6d44f71bacd517519382dd55e53597c84831340
parentd422247d14a53fe825b1778edf104167d8fd8f3f
nvmet: Use enum definitions instead of hardcoded values

Change the definition of the inline functions nvmet_cc_en(),
nvmet_cc_css(), nvmet_cc_mps(), nvmet_cc_ams(), nvmet_cc_shn(),
nvmet_cc_iosqes(), and nvmet_cc_iocqes() to use the enum difinitions in
include/linux/nvme.h instead of hardcoded values.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/nvmet.h