]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: dsa: remove struct platform_data
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 6 Apr 2026 21:21:55 +0000 (00:21 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 Apr 2026 02:38:52 +0000 (19:38 -0700)
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>
Documentation/networking/dsa/dsa.rst
include/linux/platform_data/dsa.h

index 5c79740a533bbf120978d62cc722eaf171ddf95f..fd3c254ced1dca8f0c4c13391d0ab23b0ce3072d 100644 (file)
@@ -383,11 +383,6 @@ DSA data structures are defined in ``include/net/dsa.h`` as well as
   well as various properties of its ports: names/labels, and finally a routing
   table indication (when cascading switches)
 
-- ``dsa_platform_data``: platform device configuration data which can reference
-  a collection of dsa_chip_data structures if multiple switches are cascaded,
-  the conduit network device this switch tree is attached to needs to be
-  referenced
-
 - ``dsa_switch_tree``: structure assigned to the conduit network device under
   ``dsa_ptr``, this structure references a dsa_platform_data structure as well as
   the tagging protocol supported by the switch tree, and which receive/transmit
index d4d9bf2060a6ad9634cfba6ec7e754c5e131916b..fec1ae5bddb9501c43c27ff10ea014fdb0314f11 100644 (file)
@@ -48,21 +48,4 @@ struct dsa_chip_data {
        s8              rtable[DSA_MAX_SWITCHES];
 };
 
-struct dsa_platform_data {
-       /*
-        * Reference to a Linux network interface that connects
-        * to the root switch chip of the tree.
-        */
-       struct device   *netdev;
-       struct net_device *of_netdev;
-
-       /*
-        * Info structs describing each of the switch chips
-        * connected via this network interface.
-        */
-       int             nr_chips;
-       struct dsa_chip_data    *chip;
-};
-
-
 #endif /* __DSA_PDATA_H */