Accept partial 'gpio-line-names' property.
authorChristophe Blaess <christophe.blaess@logilin.fr>
Fri, 28 Sep 2018 13:38:43 +0000 (15:38 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 1 Oct 2018 11:15:06 +0000 (13:15 +0200)
commit8dc196974429b28f1a2f2563d30d02b7561a46aa
treee269c00a8b5b6515d331e8f24313f8b6070a9ff3
parent467480738d0b33335032652b29776d82200db41a
Accept partial 'gpio-line-names' property.

Documentation/devicetree/bindings/gpio/gpio.txt says: "The names are
assigned starting from line offset 0 from left to right from the
passed array. An incomplete array (where the number of passed named
are less than ngpios) will still be used up until the last provided
valid line index". This patch makes it actually work this way.

Signed-off-by: Christophe Blaess <christophe.blaess@logilin.fr>
Signed-off-by: Patrick Boettcher <p@yai.se>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-devprop.c