summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-07-16 22:16:43 +0900
committerTejun Heo <tj@kernel.org>2016-07-18 20:55:38 -0400
commit37f92d77dc45d1fb74eff8501f26e72a3dcaa3cf (patch)
tree329727c34d87d22f1abfdd864ae8efce190fd340 /drivers/ata
parentd6e50e379eb1e7f2426eac61a1bbbf6e4cf68905 (diff)
downloadlinux-37f92d77dc45d1fb74eff8501f26e72a3dcaa3cf.tar.gz
linux-37f92d77dc45d1fb74eff8501f26e72a3dcaa3cf.tar.bz2
linux-37f92d77dc45d1fb74eff8501f26e72a3dcaa3cf.zip
ata: define ATA_PROT_* in terms of ATA_PROT_FLAG_*
This avoid the need to always translate between the two in ata_prot_flags and generally cleans up the taskfile protocol usage. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/sata_dwc_460ex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c
index fa1530a9dc03..b051c03fefc2 100644
--- a/drivers/ata/sata_dwc_460ex.c
+++ b/drivers/ata/sata_dwc_460ex.c
@@ -281,7 +281,7 @@ static void sata_dwc_dma_exit_old(struct sata_dwc_device *hsdev)
static const char *get_prot_descript(u8 protocol)
{
- switch ((enum ata_tf_protocols)protocol) {
+ switch (protocol) {
case ATA_PROT_NODATA:
return "ATA no data";
case ATA_PROT_PIO: