Re: [PATCH v4 05/10] gpio: regmap: Allow to retrieve ngpio
From: Andy Shevchenko
Date: Fri Feb 14 2025 - 11:05:20 EST
On Fri, Feb 14, 2025 at 12:49:55PM +0100, Mathieu Dubois-Briand wrote:
> Drivers can leave the ngpio field of the gpio_regmap_config structure
> uninitialized, letting gpio_regmap_register() retrieve its value from
> the "ngpios" device property. Yet, the driver might still need to know
> the ngpio value later: allow to extract this value from the gpio_regmap
> structure.
I don't think it will be needed after looking at the user. Since we have
somewhat around ten of them already and no-one wanted it makes me feel
that this is a hack which can be avoided.
--
With Best Regards,
Andy Shevchenko