提交 243e8b19 编写于 作者: A Alessandro Guido 提交者: Len Brown

sony_acpi: Add backlight support to the sony_acpi v2

Enable the sony_acpi driver to use the backlight subsysyem for adjusting
the monitor brightness.  Old way of changing the brightness will be still
available for compatibility with existing tools.
Signed-off-by: NAlessandro Guido <alessandro.guido@gmail.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NMattia Dongili <malattia@linux.it>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 50f62afb
...@@ -76,6 +76,14 @@ static struct sony_acpi_value { ...@@ -76,6 +76,14 @@ static struct sony_acpi_value {
int valid; /* Has ever been set */ int valid; /* Has ever been set */
int debug; /* active only in debug mode ? */ int debug; /* active only in debug mode ? */
} sony_acpi_values[] = { } sony_acpi_values[] = {
{
.name = "brightness",
.acpiget = "GBRT",
.acpiset = "SBRT",
.min = 1,
.max = SONY_MAX_BRIGHTNESS,
.debug = 0,
},
{ {
.name = "brightness_default", .name = "brightness_default",
.acpiget = "GPBR", .acpiget = "GPBR",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册