[PATCH] pinctrl: lpc18xx: create pin cap lookup helper

Linus Walleij linus.walleij at linaro.org
Tue May 12 04:18:11 PDT 2015


On Wed, May 6, 2015 at 7:11 PM, Joachim Eastwood <manabian at gmail.com> wrote:

> 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 at gmail.com>
> ---
> Hi Linus,
>
> Patch is based on your linux-pinctrl devel branch.
> Since it's a new driver feel free to squash it with the initial commit.

Patch applied, removed the other hackish check.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list