From: Tomasz Figa Date: Thu, 11 Oct 2012 08:11:17 +0000 (+0200) Subject: pinctrl: samsung: Use one GPIO chip per pin bank X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~49^2~13^2~2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3a7b9e3a168df881a0ae3bd0d582f44a5d5aca3;p=pandora-kernel.git pinctrl: samsung: Use one GPIO chip per pin bank This patch modifies the pinctrl-samsung driver to register one GPIO chip per pin bank, instead of a single chip for all pin banks of the controller. It simplifies GPIO accesses a lot (constant time instead of looping through the list of banks to find the right one) and should have a good effect on performance of any bit-banging driver. In addition it allows to reference GPIO pins by a phandle to the bank node and a local pin offset inside of the bank (similar to previous gpiolib driver), which is more clear and readable than using indices relative to the whole pin controller. Example: device { /* ... */ gpios = <&gpk0 4 0>; /* ... */ }; Signed-off-by: Tomasz Figa Reviewed-by: Kyungmin Park Acked-by: Thomas Abraham Signed-off-by: Linus Walleij --- Reading git-diff-tree failed