ACPI: video: create "brightness_switch_enabled" modparam
authorZhang Rui <rui.zhang@intel.com>
Fri, 25 Jan 2008 06:47:49 +0000 (14:47 +0800)
committerLen Brown <len.brown@intel.com>
Thu, 7 Feb 2008 08:22:56 +0000 (03:22 -0500)
commit8a681a4dee07ea09aedaadc6a2da28d2131dc414
tree051ace265079d74b815539be73599339d8c55b42
parent488b5ec871191359b9b79262a3d48456dae7ea5f
ACPI: video: create "brightness_switch_enabled" modparam

Introduce new module parameter for brightness control.
"brightness_switch_enabled" is set by default which means
nothing changes upon brightness switch events.

When "brightness_switch_enabled" is cleared via
"echo 0 > /sys/module/video/parameters/brightness_switch_enabled",
ACPI will not try to change the brightness level any more.

Either X will take charge of this or users can change the brightness level
by poking /sys/class/backlight/acpi_videoX/...

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/video.c