diff options
author | Yu Luming <luming.yu@gmail.com> | 2006-12-19 15:56:15 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-12-20 01:42:19 -0500 |
commit | 519ab5f2be65b72cf12ae99c89752bbe79b44df6 (patch) | |
tree | 6e404b214e426e6ccc08e414df405655fb2b404c /drivers/acpi/toshiba_acpi.c | |
parent | f4715189dfb1c381ad36b7e02e3716fb7a7f84db (diff) |
ACPI: video: Add dev argument for backlight_device_register
This patch set adds generic abstract layer support for acpi video driver to
have generic user interface to control backlight and output switch control by
leveraging the existing backlight sysfs class driver, and by adding a new
video output sysfs class driver.
This patch:
Add dev argument for backlight_device_register to link the class device to
real device object. The platform specific driver should find a way to get the
real device object for their video device.
[akpm@osdl.org: build fix]
[akpm@osdl.org: fix msi-laptop.c]
Signed-off-by: Luming Yu <Luming.yu@intel.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/toshiba_acpi.c')
-rw-r--r-- | drivers/acpi/toshiba_acpi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/toshiba_acpi.c b/drivers/acpi/toshiba_acpi.c index 2f35f891593f..88aeccbafaaf 100644 --- a/drivers/acpi/toshiba_acpi.c +++ b/drivers/acpi/toshiba_acpi.c | |||
@@ -590,7 +590,8 @@ static int __init toshiba_acpi_init(void) | |||
590 | remove_proc_entry(PROC_TOSHIBA, acpi_root_dir); | 590 | remove_proc_entry(PROC_TOSHIBA, acpi_root_dir); |
591 | } | 591 | } |
592 | 592 | ||
593 | toshiba_backlight_device = backlight_device_register("toshiba", NULL, | 593 | toshiba_backlight_device = backlight_device_register("toshiba",NULL, |
594 | NULL, | ||
594 | &toshiba_backlight_data); | 595 | &toshiba_backlight_data); |
595 | if (IS_ERR(toshiba_backlight_device)) { | 596 | if (IS_ERR(toshiba_backlight_device)) { |
596 | printk(KERN_ERR "Could not register toshiba backlight device\n"); | 597 | printk(KERN_ERR "Could not register toshiba backlight device\n"); |