include: phy: add data field for private driver data
authorAlex Marginean <alexandru.marginean@nxp.com>
Thu, 14 Nov 2019 16:28:29 +0000 (18:28 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 9 Dec 2019 15:47:42 +0000 (09:47 -0600)
This is useful to carry custom information between the driver structure
associated with a specific HW and the driver code.

Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
include/phy.h

index e50f56b6eb165a442928d23d678d9d5be0b68478..6ace9b3a0c4c7b21c4b6b6c8a9793f2be2ee1315 100644 (file)
@@ -115,6 +115,9 @@ struct phy_driver {
                         u16 val);
 
        struct list_head list;
+
+       /* driver private data */
+       ulong data;
 };
 
 struct phy_device {