[PATCH] pinctrl: Replace list_*() with get_*_count()

Linus Walleij linus.walleij at linaro.org
Tue Apr 3 17:06:10 EDT 2012


On Fri, Mar 30, 2012 at 7:55 AM, Viresh Kumar <viresh.kumar at st.com> wrote:

> Most of the SoC drivers implement list_groups() and list_functions() routines
> for pinctrl and pinmux. These routines continue returning zero until the
> selector argument is greater than total count of available groups or functions.
>
> This patch replaces these list_*() routines with get_*_count() routines, which
> returns the number of available selection for SoC driver. pinctrl layer will use
> this value to check the range it can choose.
>
> This patch fixes all user drivers for this change. There are other routines in
> user drivers, which have checks to check validity of selector passed to them. It
> is also no more required and hence removed.
>
> Documentation updated as well.
>
> Signed-off-by: Viresh Kumar <viresh.kumar at st.com>

Thanks, applied and fixed up...
Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list