]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: swnode: restore the name of the undefined software node
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Fri, 2 Jan 2026 09:33:49 +0000 (10:33 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Mon, 5 Jan 2026 09:12:25 +0000 (10:12 +0100)
commit98d78c06f54da101c1f2eb79af378cee9e07e102
tree0cfc91ea97a3aaf9b31377e045d3fe7f53b256d7
parent9d8107579ce4f2369ea3f670585710c30b14a4b4
gpio: swnode: restore the name of the undefined software node

Commit 6774a66d0e10 ("gpio: swnode: compare the "undefined" swnode by
its address, not name") switched to comparing the software nodes by
address instead of names but it's still useful to keep the name of the
node to expose the relevant information over sysfs. Restore the
human-readable name.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Closes: https://lore.kernel.org/all/aVFsjSIwrBw7tFLU@smile.fi.intel.com/
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20260102093349.17822-1-bartosz.golaszewski@oss.qualcomm.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpiolib-swnode.c