From: Alexandre Courbot Date: Sat, 16 Nov 2013 12:39:32 +0000 (+0900) Subject: gpiolib: fix find_chip_by_name() X-Git-Tag: v3.13-rc2~10^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79697ef94c48df8831a156bbb046e94215b7300d;p=pandora-kernel.git 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 Signed-off-by: Linus Walleij --- Reading git-diff-tree failed