aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorAlan Cox <alan@redhat.com>2007-03-09 09:34:07 -0500
committerJeff Garzik <jeff@garzik.org>2007-04-28 14:15:58 -0400
commita76b62ca70662cd0ca98edf366c6637009a95f7d (patch)
tree1f93b3bec4a77ed3146a1d9de29140c525b35479 /include/linux/libata.h
parent9d2c7c75f889a3eefad016c71f651b0796e0a6e9 (diff)
libata: Change prototype of mode_filter to remove ata_port*
With Tejun having added adev->ap some time ago we can get rid of the almost unused port being passed to mode filters. And while we are doing filters, lets turn on the !IORDY filter as well. Signed-off-by: Alan Cox <alan@redhat.com> With some hand massaging from Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index c145d9df04d0..5a40a8d95114 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -601,7 +601,7 @@ struct ata_port_operations {
601 601
602 void (*set_piomode) (struct ata_port *, struct ata_device *); 602 void (*set_piomode) (struct ata_port *, struct ata_device *);
603 void (*set_dmamode) (struct ata_port *, struct ata_device *); 603 void (*set_dmamode) (struct ata_port *, struct ata_device *);
604 unsigned long (*mode_filter) (const struct ata_port *, struct ata_device *, unsigned long); 604 unsigned long (*mode_filter) (struct ata_device *, unsigned long);
605 605
606 void (*tf_load) (struct ata_port *ap, const struct ata_taskfile *tf); 606 void (*tf_load) (struct ata_port *ap, const struct ata_taskfile *tf);
607 void (*tf_read) (struct ata_port *ap, struct ata_taskfile *tf); 607 void (*tf_read) (struct ata_port *ap, struct ata_taskfile *tf);
@@ -882,7 +882,7 @@ struct pci_bits {
882extern struct ata_probe_ent * 882extern struct ata_probe_ent *
883ata_pci_init_native_mode(struct pci_dev *pdev, struct ata_port_info **port, int portmask); 883ata_pci_init_native_mode(struct pci_dev *pdev, struct ata_port_info **port, int portmask);
884extern int pci_test_config_bits(struct pci_dev *pdev, const struct pci_bits *bits); 884extern int pci_test_config_bits(struct pci_dev *pdev, const struct pci_bits *bits);
885extern unsigned long ata_pci_default_filter(const struct ata_port *, struct ata_device *, unsigned long); 885extern unsigned long ata_pci_default_filter(struct ata_device *, unsigned long);
886#endif /* CONFIG_PCI */ 886#endif /* CONFIG_PCI */
887 887
888/* 888/*