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

dt-bindings: dsa: Remove unnecessary #address/#size-cells

If the example binding is used on a real dts file, the following DTC
warning is seen with W=1:

arch/arm/boot/dts/imx6q-b450v3.dtb: Warning (avoid_unnecessary_addr_size): /mdio-gpio/switch@0: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

Remove unnecessary #address-cells/#size-cells to improve the binding
document examples.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Fabio Estevam and committed by
David S. Miller
53a7bdfb 2b999ba8

-6
-6
Documentation/devicetree/bindings/net/dsa/dsa.txt
··· 82 82 83 83 switch0: switch0@0 { 84 84 compatible = "marvell,mv88e6085"; 85 - #address-cells = <1>; 86 - #size-cells = <0>; 87 85 reg = <0>; 88 86 89 87 dsa,member = <0 0>; ··· 133 135 134 136 switch1: switch1@0 { 135 137 compatible = "marvell,mv88e6085"; 136 - #address-cells = <1>; 137 - #size-cells = <0>; 138 138 reg = <0>; 139 139 140 140 dsa,member = <0 1>; ··· 200 204 201 205 switch2: switch2@0 { 202 206 compatible = "marvell,mv88e6085"; 203 - #address-cells = <1>; 204 - #size-cells = <0>; 205 207 reg = <0>; 206 208 207 209 dsa,member = <0 2>;