]> git.baikalelectronics.ru Git - kernel.git/commit
ata: libata-core: improve parameter names for ata_dev_set_feature()
authorNiklas Cassel <niklas.cassel@wdc.com>
Tue, 16 Aug 2022 11:53:28 +0000 (13:53 +0200)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Wed, 17 Aug 2022 16:40:42 +0000 (01:40 +0900)
commit0e2ed2241809fa6b412187897e27edabc273c5ab
treeae2f7359de72bf20ad7d545287c1e5c3200484c0
parentb210aa54ad73e818262553f3e073ad22a7721f60
ata: libata-core: improve parameter names for ata_dev_set_feature()

ata_dev_set_feature() is currently used for enabling/disabling any ATA
feature, e.g. SETFEATURES_SPINUP and SETFEATURE_SENSE_DATA, i.e. it is
not only used to enable/disable SATA specific features.

For most features, the enable/disable bit is specified in the subcommand
specific field "count".
It is only for the specific subcommands "Enable SATA feature" (0x10) and
"Disable SATA feature" (0x90) where the field "count" is used to specify
a feature instead of enable/disable. The parameter names for this
function are thus quite misleading.

Rename the parameter names to be more generic and in line with ACS-5,
and remove the references to "SATA FEATURES" in the kernel-doc.

Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/libata-core.c
drivers/ata/libata.h