mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/backlight/lcd.c vs drivers/backlight/backlight.c
@ 2010-02-19  7:52 Russ Dill
  0 siblings, 0 replies; only message in thread
From: Russ Dill @ 2010-02-19  7:52 UTC (permalink / raw)
  To: linux-kernel; +Cc: mjg

When these were initially checked in, they were basically the same,
except one was called backlight, the other lcd, one controlled
brightness, the other contrast.

Over time, they have diverged. backlight has sysfs_notify support,
provides uevent changes, and suspend/resume support. lcd has received
set_mode support.

Having a device that has variable brightness and needs info on video
timings, I'm confused at what to do. It seems other driver writers
chose to register and lcd device and a backlight device. It seems like
there is a lot of unnecessary duplication going on here. Should I
create my driver with both interfaces? Maybe with just use lcd and
pretend contrast is brightness, or maybe use backlight and add
set_mode support.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-02-19  7:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-19  7:52 drivers/backlight/lcd.c vs drivers/backlight/backlight.c Russ Dill

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

all inboxes | Powered by JetHome®