UPSTREAM: 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>
(cherry picked from commit 8dc196974429b28f1a2f2563d30d02b7561a46aa)
Signed-off-by: Hsin-Yi, Wang <hsinyi@google.com>

BUG=b:118998662
TEST=boot kukui

Change-Id: I689ce7c1ca197d9a1f06d6ead093b91895b0f5e6
Reviewed-on: https://chromium-review.googlesource.com/1327943
Commit-Ready: Hsin-Yi Wang <hsinyi@chromium.org>
Tested-by: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
1 file changed