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: remove struct platform_data

This is not used anywhere in the kernel.

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

authored by

Vladimir Oltean and committed by
Jakub Kicinski
b773b993 3723c3b6

-22
-5
Documentation/networking/dsa/dsa.rst
··· 383 383 well as various properties of its ports: names/labels, and finally a routing 384 384 table indication (when cascading switches) 385 385 386 - - ``dsa_platform_data``: platform device configuration data which can reference 387 - a collection of dsa_chip_data structures if multiple switches are cascaded, 388 - the conduit network device this switch tree is attached to needs to be 389 - referenced 390 - 391 386 - ``dsa_switch_tree``: structure assigned to the conduit network device under 392 387 ``dsa_ptr``, this structure references a dsa_platform_data structure as well as 393 388 the tagging protocol supported by the switch tree, and which receive/transmit
-17
include/linux/platform_data/dsa.h
··· 48 48 s8 rtable[DSA_MAX_SWITCHES]; 49 49 }; 50 50 51 - struct dsa_platform_data { 52 - /* 53 - * Reference to a Linux network interface that connects 54 - * to the root switch chip of the tree. 55 - */ 56 - struct device *netdev; 57 - struct net_device *of_netdev; 58 - 59 - /* 60 - * Info structs describing each of the switch chips 61 - * connected via this network interface. 62 - */ 63 - int nr_chips; 64 - struct dsa_chip_data *chip; 65 - }; 66 - 67 - 68 51 #endif /* __DSA_PDATA_H */