[RFC] pinctrl: Replace list_groups() with get_groups_count()

Linus Walleij linus.walleij at linaro.org
Fri Mar 30 01:14:34 EDT 2012


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

> BTW, i am planning not to add another call, get_groups_count(),
> but add another field like ngroups, which would be set by users.

get_groups_count() may make some sense if the number of
available groups could in some instance change at runtime.
Maybe a bit overcautious and pedantic but you never know...

But do it any way you like, I don't worry very much :-)

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list