diff mbox series

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

Message ID 20191114162838.7150-3-alexandru.marginean@nxp.com
State Accepted
Commit d718b697a1794876511d6a30a047acfce0b69312
Delegated to: Joe Hershberger
Headers show
Series Add XFI, USXGMII net protocols, use them in Aquantia driver | expand

Commit Message

Alexandru Marginean Nov. 14, 2019, 4:28 p.m. UTC
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>
---
 include/phy.h | 3 +++
 1 file changed, 3 insertions(+)

Comments

Joe Hershberger Nov. 30, 2019, 12:23 a.m. UTC | #1
On Thu, Nov 14, 2019 at 10:30 AM Alex Marginean
<alexandru.marginean@nxp.com> wrote:
>
> 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>
diff mbox series

Patch

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 {