[RFT PATCH v2 01/14] gpio: regmap: use the correct number for .ngpio_per_reg
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Thu Dec 3 02:12:45 PST 2026
On Mon, Nov 30, 2026 at 11:21:09AM +0100, Michael Walle wrote:
> On Fri Nov 27, 2026 at 6:19 PM CET, Andy Shevchenko wrote:
...
> >> /* if not set, assume there is only one register */
> >
> > ^^^ Seems like the comment lacks of an adjustment.
>
> No sure what you mean. If ngpio_per_reg is not set, it's still
> assumed there is only one register. Regardless what ngpio is now
> initialized with. Or do I miss something?
But can one register be longer say 32- or 64-bit?
> >> gpio->ngpio_per_reg = config->ngpio_per_reg;
> >> if (!gpio->ngpio_per_reg)
> >> - gpio->ngpio_per_reg = config->ngpio;
> >> + gpio->ngpio_per_reg = chip->ngpio;
--
With Best Regards,
Andy Shevchenko
More information about the linux-arm-kernel
mailing list