Re: [PATCH AUTOSEL 5.19 23/63] gpiolib: rework quirk handling in of_find_gpio()

From: Bartosz Golaszewski
Date: Fri Oct 14 2022 - 05:27:21 EST


On Thu, Oct 13, 2022 at 2:19 AM Sasha Levin <sashal@xxxxxxxxxx> wrote:
>
> From: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
>
> [ Upstream commit a2b5e207cade33b4d2dfd920f783f13b1f173e78 ]
>
> Instead of having a string of "if" statements let's put all quirks into
> an array and iterate over them.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
> Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
> Signed-off-by: Bartosz Golaszewski <brgl@xxxxxxxx>
> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>
> ---

Sasha,

This is not a fix, it's code refactoring. Definitely not stable material.

Bartosz