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

staging: mt7621-dts: avoid warnings in pinctrl definitions

The device-tree checking code sees node names "i2c" and "spi" in the
pinctrl definition and thinks these are defining i2c or spi devices,
and complains that they look wrong.

So add a '0' to the end of each name (much like "uart" and "rgmii"
have numbers at the end) to avoid the warning.

Signed-off-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

NeilBrown and committed by
Greg Kroah-Hartman
99c22707 d17f5ff7

+11 -11
+11 -11
drivers/staging/mt7621-dts/mt7621.dtsi
··· 202 202 state_default: pinctrl0 { 203 203 }; 204 204 205 - i2c_pins: i2c { 206 - i2c { 205 + i2c_pins: i2c0 { 206 + i2c0 { 207 207 group = "i2c"; 208 208 function = "i2c"; 209 209 }; 210 210 }; 211 211 212 - spi_pins: spi { 213 - spi { 212 + spi_pins: spi0 { 213 + spi0 { 214 214 group = "spi"; 215 215 function = "spi"; 216 216 }; ··· 251 251 }; 252 252 }; 253 253 254 - mdio_pins: mdio { 255 - mdio { 254 + mdio_pins: mdio0 { 255 + mdio0 { 256 256 group = "mdio"; 257 257 function = "mdio"; 258 258 }; 259 259 }; 260 260 261 - pcie_pins: pcie { 262 - pcie { 261 + pcie_pins: pcie0 { 262 + pcie0 { 263 263 group = "pcie"; 264 264 function = "pcie rst"; 265 265 }; 266 266 }; 267 267 268 - nand_pins: nand { 268 + nand_pins: nand0 { 269 269 spi-nand { 270 270 group = "spi"; 271 271 function = "nand1"; ··· 277 277 }; 278 278 }; 279 279 280 - sdhci_pins: sdhci { 281 - sdhci { 280 + sdhci_pins: sdhci0 { 281 + sdhci0 { 282 282 group = "sdhci"; 283 283 function = "sdhci"; 284 284 };