LCD and backlight device classes -- request for comments

From: Andrew Zabolotny <hidden>
Date: 2004-05-28 20:23:24

Hello!

I would like to hear from fbdev developers if there are any objections
against or comments about the attached patch. The patch was developer in the
handhelds.org' branch of kernel, and is going to be submited upstream to
Russel King (since there's a number of ARM-specific framebuffer devices using
these classes).

The LCD and backlight device classes were implemented with the following in
mind:

a) Allow user-mode code to control backlight and lcd (notably for
handhelds this is a must). This is done via sysfs (/sys/class/backlight/XXX/
and /sys/class/lcd/XXX/ where XXX is something like mq1100fb0).

b) Allow framebuffer devices to find and contact the respective backlight and
lcd devices (they are using the same name as the framebuffer device). This is
needed to implement the respective calls to backlight and lcd devices for
power management.

--
Greetings,
   Andrew

P.S. Please Cc: replies to me personally, as I am not subscribed to this list.

P.P.S. There's a function used in the patch - class_device_find() which
is part of a different patch. I hope the missing function won't stop anybody
from understanding the function. The class_device_find function finds a
class_device by name, and returns either NULL or the found object with its
reference count incremented.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help