pinctrl: mcp23s08: spi: Fix duplicate pinctrl debugfs entries
authorJan Kundrát <jan.kundrat@cesnet.cz>
Fri, 26 Jan 2018 15:06:37 +0000 (16:06 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 12 Feb 2018 09:47:24 +0000 (10:47 +0100)
commit1781af563aef66c2eb7cda65d754d2228321a260
treee5a80f9cc589b9ab0c5788b83a35f4ba1eedd7a4
parented231751413d4f33403f0bf0d5a957b41824f940
pinctrl: mcp23s08: spi: Fix duplicate pinctrl debugfs entries

This is a bit more involved because the pinctrl core so far always
assumed that one device (with a unique dev_name) only contains a single
pinctrl thing. This is not true for the mcp23s08 driver for chips
connected over SPI. They have a "logical address" which means that
several chips can share one physical CS signal.

A downside of this patch are some possibly ugly names for the debugfs
entries, such as "spi1.1-mcp23xxx-pinctrl.2", etc.

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