Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 597afd21 authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik
Browse files

[PATCH] libata: seperate out ata_class_present()



Seperate out ata_class_present() from ata_dev_present().  This is
useful because new reset mechanism deals with classes[] directly.

Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 348edc59
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -645,10 +645,14 @@ static inline unsigned int ata_tag_valid(unsigned int tag)
	return (tag < ATA_MAX_QUEUE) ? 1 : 0;
}

static inline unsigned int ata_class_present(unsigned int class)
{
	return class == ATA_DEV_ATA || class == ATA_DEV_ATAPI;
}

static inline unsigned int ata_dev_present(const struct ata_device *dev)
{
	return ((dev->class == ATA_DEV_ATA) ||
		(dev->class == ATA_DEV_ATAPI));
	return ata_class_present(dev->class);
}

static inline u8 ata_chk_status(struct ata_port *ap)