From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx> On Thu, 13 Feb 2025 21:48:45 +0200, Andy Shevchenko wrote: > It appears that regmap GPIO doesn't take into account 'ngpios' property > and requires hard coded values or duplication of the parsing the same > outside of GPIO library. This miniseries addresses that. > > For the record, I have checked all bgpio_init() users and haven't seen > the suspicious code that this series might break, e.g., an equivalent of > something like this: > > [...] Applied, thanks! [1/5] gpiolib: Extract gpiochip_choose_fwnode() for wider use commit: 375790f18396b2ba706e031b150c58cd37b45a11 [2/5] gpiolib: Use fwnode instead of device in gpiochip_get_ngpios() commit: 6f077e575893214136f9739f993bd9fedf61731a [3/5] gpio: regmap: Group optional assignments together for better understanding commit: 97673ea38a77e42eaafcf5181c84f6c8d40b97e7 [4/5] gpio: regmap: Move optional assignments down in the code commit: a630d3960b6ac3c37cb0789605056e8845ffbf16 [5/5] gpio: regmap: Allow ngpio to be read from the property commit: db305161880a024a43f4b1cbafa7a294793d7a9e Best regards, -- Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>