ata: libata: Introduce ata_ncq_supported()
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>
Thu, 27 Oct 2022 04:07:55 +0000 (13:07 +0900)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Fri, 13 Jan 2023 22:32:42 +0000 (07:32 +0900)
commitfa5bde139ee43ab91087c01e690c61aec957c339
tree4e881b26842270c0e2c10c169bf0bd047f7349d1
parentb4a6bb3a67aa0c37b2b6cd47efc326eb455de674
ata: libata: Introduce ata_ncq_supported()

Introduce the inline helper function ata_ncq_supported() to test if a
device supports NCQ commands. The function ata_ncq_enabled() is also
rewritten using this new helper function.

Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Niklas Cassel <niklas.cassel@wdc.com>
include/linux/libata.h