Re: [PATCH] gpio: swnode: compare the "undefined" swnode by its address, not name
From: Andy Shevchenko
Date: Sun Dec 28 2025 - 12:44:14 EST
On Mon, Dec 15, 2025 at 04:46:24PM +0100, Bartosz Golaszewski wrote:
> We know the address of the underlying remote software node referenced by
> the GPIO property (if it is a software node). We don't need to compare
> its name, we can compare its address which is more precise anyway.
...
> -const struct software_node swnode_gpio_undefined = {
> - .name = GPIOLIB_SWNODE_UNDEFINED_NAME,
> -};
> +const struct software_node swnode_gpio_undefined = { };
This will remove the name from sysfs, which may be informative.
--
With Best Regards,
Andy Shevchenko