2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 22:24:09 +08:00
linux-next/drivers/video/backlight
Henrique de Moraes Holschuh 4437cd1e98 [PATCH] backlight: do not power off backlight when unregistering
ACPI drivers like ibm-acpi are moving to the backlight sysfs
infrastructure.  During ibm-acpi testing, I have noticed that
backlight_device_unregister() sets the display brightness and power to
zero.

This causes the display to be dimmed on ibm-acpi module removal.  It will
affect all other ACPI drivers that are being converted to use the backlight
class, as well.  It also affects a number of framebuffer devices that are
used on desktops and laptops which might also not want such behaviour.

Since working around this behaviour requires undesireable hacks, Richard
Purdie decided that we would be better off reverting the changes in the
sysfs class, and adding the code to dim and power off the backlight device
to the drivers that want it.  This patch is my attempt to do so.

Patch against latest linux-2.6.git.  Changes untested, as I lack the
required hardware.  Still, they are trivial enough that, apart from typos,
there is little chance of getting them wrong.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Acked-by: Richard Purdie <rpurdie@rpsys.net>
Acked-by: Pavel Machek <pavel@ucw.cz>
Acked-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-12-08 08:29:07 -08:00
..
backlight.c [PATCH] backlight: do not power off backlight when unregistering 2006-12-08 08:29:07 -08:00
corgi_bl.c [PATCH] backlight: do not power off backlight when unregistering 2006-12-08 08:29:07 -08:00
hp680_bl.c [PATCH] backlight: do not power off backlight when unregistering 2006-12-08 08:29:07 -08:00
Kconfig [PATCH] fbdev: statically link the framebuffer notification functions 2006-07-31 13:28:44 -07:00
lcd.c [PATCH] backlight: lcd: Remove dependenct from the framebuffer layer 2006-12-08 08:29:07 -08:00
locomolcd.c [PATCH] backlight: do not power off backlight when unregistering 2006-12-08 08:29:07 -08:00
Makefile [PATCH] backlight: LOCOMO Backlight Driver updates 2006-06-26 09:58:28 -07:00