[RFT PATCH v2 01/14] gpio: regmap: use the correct number for .ngpio_per_reg

Michael Walle mwalle at kernel.org
Mon Nov 30 02:21:09 PST 2026


Hi,

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?

-michael

>>  	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;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 297 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20261130/efd3776e/attachment.sig>


More information about the linux-arm-kernel mailing list