]> git.baikalelectronics.ru Git - kernel.git/commit
gpiolib: fix find_chip_by_name()
authorAlexandre Courbot <acourbot@nvidia.com>
Sat, 16 Nov 2013 12:39:32 +0000 (21:39 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 25 Nov 2013 08:02:30 +0000 (09:02 +0100)
commit9e5f48dbbf1251171078a56c70d227f9597fd1df
treea17f59feb0de09c874c4dbeb3f5d49351467e624
parent1920b994f86b1198dd017ae8a564cf2f162a0d98
gpiolib: fix find_chip_by_name()

find_chip_by_name() was incorrectly implemented by using
gpio_lookup_list instead of gpiod_chips to iterate through all the
registered GPIO controllers. This patch reimplements it by using
gpiochip_find() with a custom search function, which simplifies the code
on top of fixing the mistake.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c