Re: [PATCH v1 1/1] gpio: ts4800: Remove duplicate code to handle 'ngpios' property
From: Linus Walleij
Date: Thu Feb 19 2026 - 12:34:43 EST
On Thu, Feb 19, 2026 at 2:46 PM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
> The gpio_generic_chip_init() handles the 'ngpios' property and
> assigns the respective field in struct gpio_chip either with
> the value of it, or, if not found, with the default based on
> the register size. There is no need to repeat this in the driver.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
That's right.
Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>
Yours,
Linus Walleij