]> asedeno.scripts.mit.edu Git - linux.git/commit
pinctrl: mcp23s08: spi: Add HW address to gpio_chip.label
authorJan Kundrát <jan.kundrat@cesnet.cz>
Fri, 26 Jan 2018 19:16:47 +0000 (20:16 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 12 Feb 2018 09:47:24 +0000 (10:47 +0100)
commited231751413d4f33403f0bf0d5a957b41824f940
tree4d4263854356a2ea5bceb40bdcc07e0849e7c3e8
parent9b3e4207661e67f04c72af15e29f74cd944f5964
pinctrl: mcp23s08: spi: Add HW address to gpio_chip.label

When several devices are sharing one hardware SPI CS, there is no visual
clue in `lsgpio` or in /sys/kernel/debug/gpio about which one is which
one. Stuff depends on the enumeration order, and therefore lower chip
addresses always go first, but that's just an implementation detail.
This change includes the device-specific address in the debug output:

  gpiochip4: GPIOs 464-479, parent: spi/spi1.1, mcp23s17.2, can sleep:
  gpiochip3: GPIOs 480-495, parent: spi/spi1.1, mcp23s17.1, can sleep:

Signed-off-by: Jan Kundrát <jan.kundrat@cesnet.cz>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-mcp23s08.c