aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 66b6847225df..22e86cb2d166 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -645,10 +645,14 @@ static inline unsigned int ata_tag_valid(unsigned int tag)
645 return (tag < ATA_MAX_QUEUE) ? 1 : 0; 645 return (tag < ATA_MAX_QUEUE) ? 1 : 0;
646} 646}
647 647
648static inline unsigned int ata_class_present(unsigned int class)
649{
650 return class == ATA_DEV_ATA || class == ATA_DEV_ATAPI;
651}
652
648static inline unsigned int ata_dev_present(const struct ata_device *dev) 653static inline unsigned int ata_dev_present(const struct ata_device *dev)
649{ 654{
650 return ((dev->class == ATA_DEV_ATA) || 655 return ata_class_present(dev->class);
651 (dev->class == ATA_DEV_ATAPI));
652} 656}
653 657
654static inline u8 ata_chk_status(struct ata_port *ap) 658static inline u8 ata_chk_status(struct ata_port *ap)