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

Viresh Kumar viresh.kumar at st.com
Fri Mar 30 00:01:11 EDT 2012


On 3/29/2012 11:18 PM, Stephen Warren wrote:
>>> >> I vaguely recall raising the same issue before, and Linus saying he
>>> >> wanted to be consistent with similar list_*() functions in other
>>> >> subsystems, but personally I'd prefer to evaluate this aspect of the
>>> >> pinctrl subsystem on its own.
>> > 
>> > Which other subsystems have such stuff?
> For example. include/linux/regulator/driver.h struct regulator_ops field
> list_voltage().

Thanks.

Anyway, if others implement it, that doesn't mean we also do that, even
if we are not happy with it. It is not only about cleaning of code, but
it will save boot time too.

@Linus: Can i have your viewpoint before i start doing this?

-- 
viresh



More information about the linux-arm-kernel mailing list