diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2023-01-16 14:45:00 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-01-23 09:21:37 +0100 |
commit | 467c89c2a6468942d7f682c14e1fdd90642aed03 (patch) | |
tree | bf50c2b8e14276c6441103f2f01ccdc7e43a1405 | |
parent | 57e15d58cf6b29dd5fdf2bd217eccc9b39fdff58 (diff) | |
download | barebox-467c89c2a6468942d7f682c14e1fdd90642aed03.tar.gz barebox-467c89c2a6468942d7f682c14e1fdd90642aed03.tar.xz |
net: dsa: add struct dsa_switch::priv member for driver use
While we could use container_of, this makes porting and synchronizing
with Linux drivers easier.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20230116134501.2006391-9-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | include/dsa.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dsa.h b/include/dsa.h index 001c4899ba..e823bac0a7 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) |