Thread (39 messages) 39 messages, 7 authors, 2025-03-18

Re: [PATCH v4 05/10] gpio: regmap: Allow to retrieve ngpio

From: Andy Shevchenko <hidden>
Date: 2025-02-14 16:05:02
Also in: linux-devicetree, linux-gpio, linux-pwm, lkml

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help