Re: [PATCH 9/9] gpio: shared: generalize most code to firmware nodes

From: Andy Shevchenko

Date: Wed Nov 04 2026 - 17:57:10 EST


On Wed, Nov 04, 2026 at 03:03:51PM +0100, Bartosz Golaszewski wrote:
> Ahead of adding support for sharing of GPIOs for other types of firmware
> nodes, convert as much code in gpiolib-shared.c as possible to using
> fwnode APIs and guard the remaining OF-specific bits with CONFIG_OF
> guards.

...

> #include <linux/string.h>
> +#include <linux/string_helpers.h>

As commented before...

...

> static LIST_HEAD(gpio_shared_list);
> static DEFINE_IDA(gpio_shared_ida);
>
> -#if IS_ENABLED(CONFIG_OF)
> +

Do we need an extra blank line?

> static struct gpio_shared_entry *
> gpio_shared_find_entry(struct fwnode_handle *controller_node,
> unsigned int offset)

--
With Best Regards,
Andy Shevchenko