aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-07-16 01:29:40 -0400
committerJeff Garzik <jeff@garzik.org>2007-07-20 08:02:11 -0400
commitda3dbb17a0e9a9ec7f5aed95f1fddadb790edc9d (patch)
tree289239e1eb60168321e905c545aa2e2f3a2b5475 /include/linux/libata.h
parent5335b729064e03319cd2d5219770451dbb1d7f67 (diff)
libata: make ->scr_read/write callbacks return error code
Convert ->scr_read/write callbacks to return error code to better indicate failure. This will help handling of SCR_NOTIFICATION. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index cb181713d9b5..c732b3e78e28 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -620,9 +620,8 @@ struct ata_port_operations {
620 u8 (*irq_on) (struct ata_port *); 620 u8 (*irq_on) (struct ata_port *);
621 u8 (*irq_ack) (struct ata_port *ap, unsigned int chk_drq); 621 u8 (*irq_ack) (struct ata_port *ap, unsigned int chk_drq);
622 622
623 u32 (*scr_read) (struct ata_port *ap, unsigned int sc_reg); 623 int (*scr_read) (struct ata_port *ap, unsigned int sc_reg, u32 *val);
624 void (*scr_write) (struct ata_port *ap, unsigned int sc_reg, 624 int (*scr_write) (struct ata_port *ap, unsigned int sc_reg, u32 val);
625 u32 val);
626 625
627 int (*port_suspend) (struct ata_port *ap, pm_message_t mesg); 626 int (*port_suspend) (struct ata_port *ap, pm_message_t mesg);
628 int (*port_resume) (struct ata_port *ap); 627 int (*port_resume) (struct ata_port *ap);