Commit 860f6e9eb780443381a76e3766a9698afbc5e2e5

Authored by Johan Hovold
Committed by David S. Miller
1 parent 2e95b2a824

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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -433,6 +433,7 @@
433 433 * by this PHY
434 434 * flags: A bitfield defining certain other features this PHY
435 435 * supports (like interrupts)
  436 + * driver_data: static driver data
436 437 *
437 438 * The drivers must implement config_aneg and read_status. All
438 439 * other functions are optional. Note that none of these
... ... @@ -448,6 +449,7 @@
448 449 unsigned int phy_id_mask;
449 450 u32 features;
450 451 u32 flags;
  452 + const void *driver_data;
451 453  
452 454 /*
453 455 * Called to issue a PHY software reset