summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-04-15 07:25:41 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-04-17 07:31:21 +0200
commitf49f067bdd0f317b8e21ead8dac917c4f971fb3f (patch)
tree714040e45d65157be85529ad3bf3c064bc8fb0e8 /include
parentbd3e5011346e3d4d03ac076ada5768c2cf197dc4 (diff)
downloadbarebox-f49f067bdd0f317b8e21ead8dac917c4f971fb3f.tar.gz
barebox-f49f067bdd0f317b8e21ead8dac917c4f971fb3f.tar.xz
pci: Do not abuse dev->priv for storing data
dev->priv is for private use of the device driver, so do not use it in the pci core. Instead, introduce a id field in struct pci_device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index e422055baa..152ba10a04 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -92,6 +92,7 @@ struct pci_dev {
struct pci_bus *bus; /* bus this device is on */
struct pci_bus *subordinate; /* bus this device bridges to */
struct pci_slot *slot; /* Physical slot this device is in */
+ const struct pci_device_id *id; /* the id this device matches */
struct device_d dev;