diff options
author | Joachim Eastwood <manabian@gmail.com> | 2015-05-06 19:11:21 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-05-12 13:17:48 +0200 |
commit | 403fbdee4728afc4e5c4b0a24b8eac3b52595b39 (patch) | |
tree | f7c51c9af3adeb6e032b86861e0f6b41239cdb14 /drivers/pinctrl/Kconfig | |
parent | e8e36d2f1873218a2fdaf0b7cd335b84e8be6112 (diff) | |
download | blackbird-op-linux-403fbdee4728afc4e5c4b0a24b8eac3b52595b39.tar.gz blackbird-op-linux-403fbdee4728afc4e5c4b0a24b8eac3b52595b39.zip |
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 <manabian@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/Kconfig')
0 files changed, 0 insertions, 0 deletions