summaryrefslogtreecommitdiffstats
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2014-11-19 12:59:14 +0100
committerDavid S. Miller <davem@davemloft.net>2014-11-21 14:08:55 -0500
commit860f6e9eb780443381a76e3766a9698afbc5e2e5 (patch)
tree7ffeab30def57d4c86831674105270dba29ace59 /include/linux/phy.h
parent2e95b2a8244bfd8993f55c993f1b7d33a89124e0 (diff)
downloadlinux-860f6e9eb780443381a76e3766a9698afbc5e2e5.tar.gz
linux-860f6e9eb780443381a76e3766a9698afbc5e2e5.tar.bz2
linux-860f6e9eb780443381a76e3766a9698afbc5e2e5.zip
net: phy: add static data field to struct phy_driver
Add static driver-data field to struct phy_driver, which can be used to store structured device-type information. Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r--include/linux/phy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 07794e720139..22af8f8f5802 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -433,6 +433,7 @@ struct phy_device {
* by this PHY
* flags: A bitfield defining certain other features this PHY
* supports (like interrupts)
+ * driver_data: static driver data
*
* The drivers must implement config_aneg and read_status. All
* other functions are optional. Note that none of these
@@ -448,6 +449,7 @@ struct phy_driver {
unsigned int phy_id_mask;
u32 features;
u32 flags;
+ const void *driver_data;
/*
* Called to issue a PHY software reset