From: Alexandre Courbot Date: Sat, 2 Feb 2013 16:29:24 +0000 (+0900) Subject: gpiolib: link all gpio_chips using a list X-Git-Tag: v3.9-rc1~76^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a989d0f1de8f5a150b35e1e8181cc1abc139162;p=pandora-kernel.git gpiolib: link all gpio_chips using a list Add a list member to gpio_chip that allows all chips to be parsed quickly. The current method requires parsing the entire GPIO integer space, which is painfully slow. Using a list makes many chip operations that involve lookup or parsing faster, and also simplifies the code. It is also necessary to eventually get rid of the global gpio_desc[] array. The list of gpio_chips is always ordered by base GPIO number to ensure chips traversal is done in the right order. Signed-off-by: Alexandre Courbot Reviewed-by: Linus Walleij Signed-off-by: Grant Likely --- Reading git-diff-tree failed