diff options
author | Christoph Hellwig <hch@lst.de> | 2016-07-16 22:16:43 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-07-18 20:55:38 -0400 |
commit | 37f92d77dc45d1fb74eff8501f26e72a3dcaa3cf (patch) | |
tree | 329727c34d87d22f1abfdd864ae8efce190fd340 /drivers/ata | |
parent | d6e50e379eb1e7f2426eac61a1bbbf6e4cf68905 (diff) | |
download | op-kernel-dev-37f92d77dc45d1fb74eff8501f26e72a3dcaa3cf.zip op-kernel-dev-37f92d77dc45d1fb74eff8501f26e72a3dcaa3cf.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c index fa1530a..b051c03 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: |