Re: [PATCH v2 2/2] of: property: Add device link support for pinctrl-0 through pinctrl-8
From: Rob Herring
Date: Mon Jul 27 2020 - 17:07:38 EST
On Fri, 24 Jul 2020 16:44:15 -0700, Saravana Kannan wrote:
> Add support for pinctrl-0 through pinctrl-8 explicitly instead of trying
> to add support for pinctrl-%d properties.
> Of all the pinctrl-* properties in dts files (20322), only 47% (9531)
> are pinctrl-%d properties. Of all the pinctrl-%d properties, 99.5%
> (9486) are made up of pinctrl-[0-2]. 'pinctrl-8' is the current maximum
> found in dts files.
> Trying to parse all pinctrl-* properties and checking for pinctrl-%d is
> unnecessarily complicated. So, just add support for pinctrl-[0-8] for
> now. In the unlikely event we ever exceed pinctrl-8, we can come back
> and improve this.
> Signed-off-by: Saravana Kannan <saravanak@xxxxxxxxxx>
> - Clarified in commit text that pinctrl-8 is the max found in the dts
> drivers/of/property.c | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)