public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] leds: backlight: Register with class backlight
@ 2019-11-25 14:47 Guido Günther
  2019-11-25 14:47 ` [RFC PATCH 1/1] leds: backlight: register with class backlight too Guido Günther
  2019-11-25 18:19 ` [RFC PATCH 0/1] leds: backlight: Register with class backlight Jacek Anaszewski
  0 siblings, 2 replies; 3+ messages in thread
From: Guido Günther @ 2019-11-25 14:47 UTC (permalink / raw)
  To: Jacek Anaszewski, Pavel Machek, Dan Murphy, Kate Stewart,
	Thomas Gleixner, Enrico Weigelt, Allison Randal, linux-leds,
	linux-kernel

When using current LCD drivers as ledtrig backlight they're
not registered with the backlight device class. This has
two problems: they're usually not found by userspace since
these tools usually look in /sys/class/backlight and they
can't be used as backlight phandles in device tree for
e.g. LCD panels.

This is an RFC if this is worthwhile at all? A current problem
is that changing the LED brightness does currently not notify
the class backlight so they can get out of sync but i could
look into that if the approach makes sense.


Guido Günther (1):
  leds: backlight: register with class backlight too

 drivers/leds/trigger/ledtrig-backlight.c | 54 ++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

-- 
2.23.0


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

end of thread, other threads:[~2019-11-25 18:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-25 14:47 [RFC PATCH 0/1] leds: backlight: Register with class backlight Guido Günther
2019-11-25 14:47 ` [RFC PATCH 1/1] leds: backlight: register with class backlight too Guido Günther
2019-11-25 18:19 ` [RFC PATCH 0/1] leds: backlight: Register with class backlight Jacek Anaszewski

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