]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: refactor gpiochip_find() slightly
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 11 Aug 2016 16:21:58 +0000 (01:21 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 19 Aug 2016 08:55:08 +0000 (10:55 +0200)
commitf385e370fc2dd0610be051399d3e1a3cb4fdecf5
tree3f17ce87d972e3f8d7f3b76f16e42941dca2f4d0
parentbc32f80ae07b2e2ecfbdaf6b30dff9c314cf4146
gpio: refactor gpiochip_find() slightly

The if...else... block after the loop can be dropped with
a slight refactoring.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c