[U-Boot] [PATCH v3 02/11] include: phy: add data field for private driver data

Alex Marginean alexandru.marginean at nxp.com
Thu Nov 14 16:28:29 UTC 2019


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 at nxp.com>
---
 include/phy.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/phy.h b/include/phy.h
index e50f56b6eb..6ace9b3a0c 100644
--- a/include/phy.h
+++ b/include/phy.h
@@ -115,6 +115,9 @@ struct phy_driver {
 			 u16 val);
 
 	struct list_head list;
+
+	/* driver private data */
+	ulong data;
 };
 
 struct phy_device {
-- 
2.17.1



More information about the U-Boot mailing list