ata: libata: Rename and cleanup ata_rwcmd_protocol()
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>
Thu, 27 Oct 2022 05:21:12 +0000 (14:21 +0900)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Fri, 13 Jan 2023 22:32:42 +0000 (07:32 +0900)
commit77839debd1772204a60b9072ef6ae83ade1fb573
tree3697e4503cd4562002eda2862cac00b05ad2d6a5
parentfa5bde139ee43ab91087c01e690c61aec957c339
ata: libata: Rename and cleanup ata_rwcmd_protocol()

Rename ata_rwcmd_protocol() to ata_set_rwcmd_protocol() to better
reflect the fact that this function sets a task file command and
protocol. The arguments order is also reversed and the function return
type changed to a bool to indicate if the command and protocol were set
correctly (instead of returning a completely arbitrary "-1" value.

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>
drivers/ata/libata-core.c