aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2005-11-08 14:09:44 +0000
committerJeff Garzik <jgarzik@pobox.com>2005-11-11 08:19:55 -0500
commite99f8b5efe78110e4af10f35ebf11feeef8f43b6 (patch)
tree749f7803380b81eb711acf5818b2c2db2bbc9cd2 /include/linux
parent[libata sata_mv] add Adaptec 1420SA PCI ID (diff)
downloadlinux-dev-e99f8b5efe78110e4af10f35ebf11feeef8f43b6.tar.xz
linux-dev-e99f8b5efe78110e4af10f35ebf11feeef8f43b6.zip
[PATCH] libata: propogate host private data from probe function
This will let me chop the code size of several drivers right down. In many cases the actual private data is very useful and constant for a given host controller so being able to just pass it at probe time would be very useful indeed (eg with the via driver would could pass the udma clocking and reduce the code size, or with the AMD one the UDMA multiplier and the offset) Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/libata.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index a5390313c7b4..1464a7586de8 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -405,6 +405,7 @@ struct ata_port_info {
unsigned long mwdma_mask;
unsigned long udma_mask;
const struct ata_port_operations *port_ops;
+ void *private_data;
};
struct ata_timing {