The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/3] leds: Fix "(null)" LED names after registering
@ 2026-11-28 21:52 Carlo Szelinsky
  2026-11-28 21:52 ` [PATCH 1/3] leds: class: Fix the LED name in the debug message " Carlo Szelinsky
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Carlo Szelinsky @ 2026-11-28 21:52 UTC (permalink / raw)
  To: Lee Jones, Pavel Machek
  Cc: Griffin Kroah-Hartman, Marek Behún,
	Álvaro Fernández Rojas, linux-leds, linux-kernel

Drivers that register with init_data usually leave cdev.name unset,
because the LED core builds the name itself. Four places still print
cdev.name after registering, so they say "(null)":

- the debug message in led_classdev_register_ext()
- the probe message in leds-syscon (dev_info, so it is in every boot log)
- the debug messages in leds-bcm6328 and leds-bcm6358

Patch 1 fixes the core message to print the name of the LED device.
Patches 2 and 3 remove the driver messages, as the core message now
covers them.

I saw it with leds-syscon on an OpenWrt switch (6.18). The patches are
build-tested on mainline only.

Carlo Szelinsky (3):
  leds: class: Fix the LED name in the debug message after registering
  leds: syscon: Remove the probe message
  leds: bcm6328, bcm6358: Remove the registration debug message

 drivers/leds/led-class.c    | 2 +-
 drivers/leds/leds-bcm6328.c | 2 --
 drivers/leds/leds-bcm6358.c | 2 --
 drivers/leds/leds-syscon.c  | 1 -
 4 files changed, 1 insertion(+), 6 deletions(-)


base-commit: 7cd8495c0f16275c4f9abe1cef09a7b5fcd6d046
-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-28 21:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-28 21:52 [PATCH 0/3] leds: Fix "(null)" LED names after registering Carlo Szelinsky
2026-11-28 21:52 ` [PATCH 1/3] leds: class: Fix the LED name in the debug message " Carlo Szelinsky
2026-11-28 21:52 ` [PATCH 2/3] leds: syscon: Remove the probe message Carlo Szelinsky
2026-11-28 21:52 ` [PATCH 3/3] leds: bcm6328, bcm6358: Remove the registration debug message Carlo Szelinsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox