From: Joachim Eastwood Date: Wed, 6 May 2015 17:11:21 +0000 (+0200) Subject: pinctrl: lpc18xx: create pin cap lookup helper X-Git-Tag: omap-for-v4.3/legacy-v2-signed~161^2~76 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=403fbdee4728afc4e5c4b0a24b8eac3b52595b39;p=pandora-kernel.git pinctrl: lpc18xx: create pin cap lookup helper Both pconf_get_pin and pconf_set_pin needs to lookup pin cap based on the pin number. Create a common helper function that both functions can use that also handles the case where no pin number is found in the pins array. This also fixes a small bug in pconf_get_pin where pconf_get_i2c0 would use the pins array index rather than the pin number. Signed-off-by: Joachim Eastwood Signed-off-by: Linus Walleij --- Reading git-diff-tree failed