Patches are removed from the already-upstream queue only by rebase,
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / releases / upstream / 2.6.20-rc2 / 0026-ACPI-video-Add-dev-argument-for-backlight_device_register.txt
blob83e9e703e9f25d81033dae14d7fa810a32c5a88f
1 From 519ab5f2be65b72cf12ae99c89752bbe79b44df6 Mon Sep 17 00:00:00 2001
2 From: Yu Luming <luming.yu@gmail.com>
3 Date: Tue, 19 Dec 2006 12:56:15 -0800
4 Subject: [PATCH 26/28] ACPI: video: Add dev argument for backlight_device_register
6 This patch set adds generic abstract layer support for acpi video driver to
7 have generic user interface to control backlight and output switch control by
8 leveraging the existing backlight sysfs class driver, and by adding a new
9 video output sysfs class driver.
11 This patch:
13 Add dev argument for backlight_device_register to link the class device to
14 real device object.  The platform specific driver should find a way to get the
15 real device object for their video device.
17 [akpm@osdl.org: build fix]
18 [akpm@osdl.org: fix msi-laptop.c]
19 Signed-off-by: Luming Yu <Luming.yu@intel.com>
20 Cc: "Antonino A. Daplas" <adaplas@pol.net>
21 Cc: Greg KH <greg@kroah.com>
22 Signed-off-by: Andrew Morton <akpm@osdl.org>
23 Signed-off-by: Len Brown <len.brown@intel.com>
24 ---
25  drivers/acpi/ibm_acpi.c |    2 +-
26  1 files changed, 1 insertions(+), 1 deletions(-)
28 diff --git a/drivers/acpi/ibm_acpi.c b/drivers/acpi/ibm_acpi.c
29 index 1397efb..da08b9c 100644
30 --- a/drivers/acpi/ibm_acpi.c
31 +++ b/drivers/acpi/ibm_acpi.c
32 @@ -1714,7 +1714,7 @@ static struct backlight_properties ibm_backlight_data = {
34  static int brightness_init(void)
35  {
36 -       ibm_backlight_device = backlight_device_register("ibm", NULL,
37 +       ibm_backlight_device = backlight_device_register("ibm", NULL, NULL,
38                                                          &ibm_backlight_data);
39         if (IS_ERR(ibm_backlight_device)) {
40                 printk(IBM_ERR "Could not register backlight device\n");
41 -- 
42 1.4.4.2