Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: dsa: clean up struct dsa_chip_data

This has accumulated some fields which are no longer parsed by the core
or set by any driver. Remove them.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20260406212158.721806-3-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Vladimir Oltean and committed by
Jakub Kicinski
dc915f37 b773b993

-20
-20
include/linux/platform_data/dsa.h
··· 11 11 12 12 struct dsa_chip_data { 13 13 /* 14 - * How to access the switch configuration registers. 15 - */ 16 - struct device *host_dev; 17 - int sw_addr; 18 - 19 - /* 20 14 * Reference to network devices 21 15 */ 22 16 struct device *netdev[DSA_MAX_PORTS]; 23 17 24 18 /* set to size of eeprom if supported by the switch */ 25 19 int eeprom_len; 26 - 27 - /* Device tree node pointer for this specific switch chip 28 - * used during switch setup in case additional properties 29 - * and resources needs to be used 30 - */ 31 - struct device_node *of_node; 32 20 33 21 /* 34 22 * The names of the switch's ports. Use "cpu" to ··· 26 38 * or any other string to indicate this is a physical port. 27 39 */ 28 40 char *port_names[DSA_MAX_PORTS]; 29 - struct device_node *port_dn[DSA_MAX_PORTS]; 30 - 31 - /* 32 - * An array of which element [a] indicates which port on this 33 - * switch should be used to send packets to that are destined 34 - * for switch a. Can be NULL if there is only one switch chip. 35 - */ 36 - s8 rtable[DSA_MAX_SWITCHES]; 37 41 }; 38 42 39 43 #endif /* __DSA_PDATA_H */