diff options
author | Alan <alan@lxorguk.ukuu.org.uk> | 2007-03-06 05:37:52 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-04-28 14:15:58 -0400 |
commit | 04351821b43e6c0c91ad50d7e4be54a935f749e1 (patch) | |
tree | 1cca629143ad5ac370129a6188f951077059b19b /include/linux | |
parent | fcc2f69a6fad1543b466db9c35aa5a2f364eb3d4 (diff) |
pata: expose set_mode method so it can be wrapped
This splits set_mode into do_set_mode and the wrapper so that a driver can
call the standard method inside its own. This in theory also obsoletes
->post_set_mode().
Signed-off-by: Alan Cox <alan@redhat.com>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: Tejun Heo <htejun@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/libata.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 3451ef97a931..c145d9df04d0 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -831,6 +831,7 @@ extern void ata_scsi_slave_destroy(struct scsi_device *sdev); | |||
831 | extern int ata_scsi_change_queue_depth(struct scsi_device *sdev, | 831 | extern int ata_scsi_change_queue_depth(struct scsi_device *sdev, |
832 | int queue_depth); | 832 | int queue_depth); |
833 | extern struct ata_device *ata_dev_pair(struct ata_device *adev); | 833 | extern struct ata_device *ata_dev_pair(struct ata_device *adev); |
834 | extern int ata_do_set_mode(struct ata_port *ap, struct ata_device **r_failed_dev); | ||
834 | extern u8 ata_irq_on(struct ata_port *ap); | 835 | extern u8 ata_irq_on(struct ata_port *ap); |
835 | extern u8 ata_dummy_irq_on(struct ata_port *ap); | 836 | extern u8 ata_dummy_irq_on(struct ata_port *ap); |
836 | extern u8 ata_irq_ack(struct ata_port *ap, unsigned int chk_drq); | 837 | extern u8 ata_irq_ack(struct ata_port *ap, unsigned int chk_drq); |