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>
This commit is contained in:
parent
2e95b2a824
commit
860f6e9eb7
1 changed files with 2 additions and 0 deletions
|
|
@ -433,6 +433,7 @@ struct phy_device {
|
||||||
* by this PHY
|
* by this PHY
|
||||||
* flags: A bitfield defining certain other features this PHY
|
* flags: A bitfield defining certain other features this PHY
|
||||||
* supports (like interrupts)
|
* supports (like interrupts)
|
||||||
|
* driver_data: static driver data
|
||||||
*
|
*
|
||||||
* The drivers must implement config_aneg and read_status. All
|
* The drivers must implement config_aneg and read_status. All
|
||||||
* other functions are optional. Note that none of these
|
* other functions are optional. Note that none of these
|
||||||
|
|
@ -448,6 +449,7 @@ struct phy_driver {
|
||||||
unsigned int phy_id_mask;
|
unsigned int phy_id_mask;
|
||||||
u32 features;
|
u32 features;
|
||||||
u32 flags;
|
u32 flags;
|
||||||
|
const void *driver_data;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Called to issue a PHY software reset
|
* Called to issue a PHY software reset
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue