Re: [PATCH v4 14/16] power: supply: bd71828: Support wider register addresses
From: Andreas Kemnade
Date: Fri Nov 14 2025 - 06:18:59 EST
On Thu, 13 Nov 2025 10:55:39 +0200
Matti Vaittinen <matti.vaittinen@xxxxxxxxx> wrote:
> As a side note, we can reduce the "wasted space / member / instance" from
> 3 bytes to 1 byte, by using u16 instead of the unsigned int if needed. I
> rather use unsigned int to be initially prepared for devices with 32 bit
> registers if there is no need to count bytes.
Well, this is totally internal to the module, so no ABI/API changes, so
there is no advantage of using 32bit now I think. We can switch any time.
But we have 32bit stuff in the regmap cache anyways, so that is not above
the general level of wasting space.
Regards,
Andreas