[PATCH 8/9] net: dsa: add struct dsa_switch::priv member for driver use

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Jan 16 05:45:00 PST 2023


While we could use container_of, this makes porting and synchronizing
with Linux drivers easier.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 include/dsa.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/dsa.h b/include/dsa.h
index 001c4899ba41..e823bac0a78c 100644
--- a/include/dsa.h
+++ b/include/dsa.h
@@ -82,6 +82,7 @@ struct dsa_switch {
 	void *tx_buf;
 	struct mii_bus *slave_mii_bus;
 	u32 phys_mii_mask;
+	void *priv;
 };
 
 static inline struct dsa_port *dsa_to_port(struct dsa_switch *ds, int p)
-- 
2.30.2




More information about the barebox mailing list