On Fri, Jan 26, 2018 at 8:02 PM, Jan Kundrát <jan.kundrat@xxxxxxxxx> wrote: > Some debugging tools (/sys/kernel/debug/gpio, `lsgpio`) use the > gpio_chip's label for displaying an additional context. Right now, the > information duplicates stuff which is already available from the > parent's device. This is how e.g. `lsgpio`'s output looks like: > > GPIO chip: gpiochip2, "spi1.2", 16 GPIO lines > > Comparing the output of other GPIO expanders that I have available: > > gpiochip4: GPIOs 464-479, parent: spi/spi1.1, mcp23s17, can sleep: > gpiochip5: GPIOs 448-463, parent: i2c/0-0020, pca9555, can sleep: > gpiochip2: GPIOs 496-511, parent: spi/spi1.2, spi1.2, can sleep: > > This patch ensures that the type of the real HW device is shown instead > of duplicating the SPI path: > > gpiochip2: GPIOs 496-511, parent: spi/spi1.2, MAX14830, can sleep: > > Signed-off-by: Jan Kundrát <jan.kundrat@xxxxxxxxx> Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Greg, pls apply this to your TTY tree. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html