[PATCH V2 4/6] pinctrl: support reading pins, groups & functions from DT

Andy Shevchenko andy.shevchenko at gmail.com
Thu Nov 25 01:51:12 PST 2021


On Thu, Nov 25, 2021 at 11:49 AM Andy Shevchenko
<andy.shevchenko at gmail.com> wrote:
> On Thu, Nov 25, 2021 at 1:04 AM Rafał Miłecki <zajec5 at gmail.com> wrote:

> Have you thought about making ops structure (or ops inside existing
> structure) and all above will be something like
>
>   stuct ops *... = ...->ops;
>
>   if (ops && ops->METHOD)
>     return ops->METHOD(...);
>
>   return -ERRNO;

Forgot to add that ops assignment should happen at the pin control
enumeration or something like that. Quite early and quite globally.

-- 
With Best Regards,
Andy Shevchenko



More information about the linux-arm-kernel mailing list