kernel-ark/drivers/video
Richard Purdie 6ca017658b [PATCH] backlight: Backlight Class Improvements
Backlight class attributes are currently easy to implement incorrectly.
Moving certain handling into the backlight core prevents this whilst at the
same time makes the drivers simpler and consistent.  The following changes are
included:

The brightness attribute only sets and reads the brightness variable in the
backlight_properties structure.

The power attribute only sets and reads the power variable in the
backlight_properties structure.

Any framebuffer blanking events change a variable fb_blank in the
backlight_properties structure.

The backlight driver has only two functions to implement.  One function is
called when any of the above properties change (to update the backlight
brightness), the second is called to return the current backlight brightness
value.  A new attribute "actual_brightness" is added to return this brightness
as determined by the driver having combined all the above factors (and any
driver/device specific factors).

Additionally, the backlight core takes care of checking the maximum brightness
is not exceeded and of turning off the backlight before device removal.

The corgi backlight driver is updated to reflect these changes.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-31 12:19:00 -08:00
..
aty Merge ../linux-2.6 2006-03-29 13:24:50 +11:00
backlight [PATCH] backlight: Backlight Class Improvements 2006-03-31 12:19:00 -08:00
console [PATCH] fbcon: Save current display during initialization 2006-03-31 12:19:00 -08:00
geode [PATCH] fbdev: framebuffer driver for Geode GX 2006-03-27 08:44:55 -08:00
i810 [PATCH] i810fb: Remove NULL check 2006-03-27 08:44:56 -08:00
intelfb [PATCH] intelfb: Fix buffer overrun 2006-03-11 09:19:35 -08:00
kyro [PATCH] kyrofb: Fix uninitialized value 2006-03-11 09:19:35 -08:00
logo spelling: s/retreive/retrieve/ 2006-01-10 00:10:13 +01:00
matrox Merge ../linux-2.6 2006-03-29 13:24:50 +11:00
nvidia Merge ../linux-2.6 2006-03-29 13:24:50 +11:00
riva Merge ../linux-2.6 2006-03-29 13:24:50 +11:00
savage [PATCH] savagefb: Remove NULL check 2006-03-27 08:44:56 -08:00
sis [PATCH] video/sis/init301.c:SiS_ChrontelDoSomething2(): remove dead code 2006-03-27 08:44:58 -08:00
68328fb.c [PATCH] fbdev: Sanitize ->fb_mmap prototype 2006-01-14 18:27:15 -08:00
acornfb.c [PATCH] drivers/video: Use ARRAY_SIZE macro 2006-03-27 08:44:58 -08:00
acornfb.h
amba-clcd.c [ARM] amba-clcd: Allow RGB555 and RGB565 with 16bpp 2006-01-26 14:12:06 +00:00
amifb.c [PATCH] fbdev: Sanitize ->fb_ioctl prototype 2006-01-14 18:27:14 -08:00
arcfb.c [PATCH] arcfb: Fix dereference before NULL check 2006-03-11 09:19:35 -08:00
asiliantfb.c [PATCH] drivers/video: Use ARRAY_SIZE macro 2006-03-27 08:44:58 -08:00
atafb.c [PATCH] fbdev: Sanitize ->fb_ioctl prototype 2006-01-14 18:27:14 -08:00
au1100fb.c [PATCH] au1100fb: replaced io_remap_page_range() with io_remap_pfn_range() 2006-02-24 14:31:38 -08:00
au1100fb.h
au1200fb.c [PATCH] au1200fb: Alchemy Au1200 framebuffer driver 2006-03-27 08:44:55 -08:00
au1200fb.h [PATCH] au1200fb: Alchemy Au1200 framebuffer driver 2006-03-27 08:44:55 -08:00
bt431.h
bt455.h
bw2.c BUG_ON() Conversion in drivers/video/ 2006-03-24 18:53:18 +01:00
c2p.c
c2p.h
cfbcopyarea.c
cfbfillrect.c
cfbimgblt.c
cg3.c [PATCH] fbdev: Sanitize ->fb_mmap prototype 2006-01-14 18:27:15 -08:00
cg6.c [PATCH] fbdev: Sanitize ->fb_mmap prototype 2006-01-14 18:27:15 -08:00
cg14.c [PATCH] fbdev: Sanitize ->fb_mmap prototype 2006-01-14 18:27:15 -08:00
chipsfb.c [PATCH] drivers/video: Use ARRAY_SIZE macro 2006-03-27 08:44:58 -08:00
cirrusfb.c [PATCH] powerpc: Kill _machine and hard-coded platform numbers 2006-03-28 23:15:54 +11:00
clps711xfb.c
controlfb.c [PATCH] fbdev: Sanitize ->fb_mmap prototype 2006-01-14 18:27:15 -08:00
controlfb.h
cyber2000fb.c
cyber2000fb.h
cyberfb.c
cyberfb.h
cyblafb.c [PATCH] PCI: cyblafb: remove pci_module_init() return, really. 2006-01-31 18:00:13 -08:00
dnfb.c
edid.h
epson1355fb.c [PATCH] Mark empty release functions as broken 2006-03-20 13:42:57 -08:00
fbcmap.c [PATCH] framebuffer: cmap-setting return values 2006-03-27 08:44:56 -08:00
fbcvt.c [PATCH] fbdev: Replace kmalloc with kzalloc 2006-01-10 08:01:51 -08:00
fbmem.c [PATCH] Don't pass boot parameters to argv_init[] 2006-03-31 12:18:53 -08:00
fbmon.c [PATCH] fbdev: Make BIOS EDID reading configurable 2006-03-27 08:44:55 -08:00
fbsysfs.c [PATCH] framebuffer: cmap-setting return values 2006-03-27 08:44:56 -08:00
ffb.c BUG_ON() Conversion in drivers/video/ 2006-03-24 18:53:18 +01:00
fm2fb.c
g364fb.c
gbefb.c [PATCH] gbefb: IP32 gbefb depth change fix 2006-02-24 14:31:38 -08:00
hgafb.c [PATCH] fbdev: hgafb: Convert to platform device 2006-01-10 08:01:45 -08:00
hitfb.c
hpfb.c [PATCH] hp300: fix driver_register() return handling, remove dio_module_init() 2006-03-25 08:22:53 -08:00
igafb.c [PATCH] fbdev: Sanitize ->fb_mmap prototype 2006-01-14 18:27:15 -08:00
imsttfb.c [PATCH] drivers/video: Use ARRAY_SIZE macro 2006-03-27 08:44:58 -08:00
imxfb.c
imxfb.h
Kconfig [PATCH] fbdev: Make BIOS EDID reading configurable 2006-03-27 08:44:55 -08:00
leo.c [PATCH] fbdev: Sanitize ->fb_mmap prototype 2006-01-14 18:27:15 -08:00
macfb.c [PATCH] m68k: fix macfb init 2006-01-12 09:09:05 -08:00
macmodes.c [PATCH] drivers/video: Use ARRAY_SIZE macro 2006-03-27 08:44:58 -08:00
macmodes.h
Makefile [PATCH] au1200fb: Alchemy Au1200 framebuffer driver 2006-03-27 08:44:55 -08:00
maxinefb.c
modedb.c [PATCH] drivers/video: Use ARRAY_SIZE macro 2006-03-27 08:44:58 -08:00
neofb.c [PATCH] drivers/video: Use ARRAY_SIZE macro 2006-03-27 08:44:58 -08:00
offb.c
p9100.c [PATCH] fbdev: Sanitize ->fb_mmap prototype 2006-01-14 18:27:15 -08:00
platinumfb.c
platinumfb.h
pm2fb.c [PATCH] fbdev: pm2fb: Driver cleanups 2006-01-10 08:01:45 -08:00
pm3fb.c [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
pmag-aa-fb.c [PATCH] fbdev: Sanitize ->fb_ioctl prototype 2006-01-14 18:27:14 -08:00
pmag-ba-fb.c [PATCH] remove bogus asm/bug.h includes. 2006-02-07 20:56:35 -05:00
pmagb-b-fb.c [PATCH] drivers/video: Use ARRAY_SIZE macro 2006-03-27 08:44:58 -08:00
pvr2fb.c
pxafb.c [PATCH] fbdev: Sanitize ->fb_mmap prototype 2006-01-14 18:27:15 -08:00
pxafb.h
q40fb.c
radeonfb.c Merge ../linux-2.6 2006-03-29 13:24:50 +11:00
retz3fb.c
retz3fb.h
s1d13xxxfb.c [PATCH] s1d13xxxfb: Fix resource leak 2006-03-11 09:19:35 -08:00
s3c2410fb.c [ARM] remove duplicate #includes 2006-02-15 10:13:02 +00:00
s3c2410fb.h
S3triofb.c
sa1100fb.c [PATCH] handle errors returned by platform_get_irq*() 2006-03-20 13:42:57 -08:00
sa1100fb.h
sbuslib.c [SPARC]: Respect vm_page_prot in io_remap_page_range(). 2006-03-22 01:15:13 -08:00
sbuslib.h [SPARC]: Fix sbusfb build. 2006-01-17 15:53:11 -08:00
sgivwfb.c [PATCH] fbdev: Sanitize ->fb_mmap prototype 2006-01-14 18:27:15 -08:00
skeletonfb.c [PATCH] skeletonfb: Documentation update 2006-01-10 08:01:49 -08:00
sstfb.c [PATCH] drivers/video: Use ARRAY_SIZE macro 2006-03-27 08:44:58 -08:00
sticore.h [PARISC] Fix stifb with IOREMAP and a 64-bit kernel 2006-03-30 17:48:47 +00:00
stifb.c [PATCH] Don't pass boot parameters to argv_init[] 2006-03-31 12:18:53 -08:00
sun3fb.c
tcx.c [PATCH] fbdev: Sanitize ->fb_mmap prototype 2006-01-14 18:27:15 -08:00
tdfxfb.c [PATCH] tdfxfb: Fix buffer overrun 2006-03-11 09:19:36 -08:00
tgafb.c
tridentfb.c
tx3912fb.c
valkyriefb.c
valkyriefb.h
vesafb.c [PATCH] Fix vesafb display panning regression 2006-01-10 08:01:47 -08:00
vfb.c [PATCH] Mark empty release functions as broken 2006-03-20 13:42:57 -08:00
vga16fb.c [PATCH] vga16fb: Trim vga16fb_pan_display 2006-01-10 08:01:47 -08:00
vgastate.c [PATCH] fbdev: Replace kmalloc with kzalloc 2006-01-10 08:01:51 -08:00
virgefb.c [PATCH] drivers/video: Use ARRAY_SIZE macro 2006-03-27 08:44:58 -08:00
virgefb.h
w100fb.c [PATCH] w100fb: Add acceleration support to ATI Imageon 2006-03-31 12:19:00 -08:00
w100fb.h [PATCH] w100fb: Add acceleration support to ATI Imageon 2006-03-31 12:19:00 -08:00