ibm-acpi: rename backlight device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The ThinkPad can connect to more than one flat pannel display using the
external VGA or DVI output, which we may be able to control over DCC
someday.  

Also, Lenovo may introduce a ThinkPad with more than one internal LCD
screen in the future.  Or we could have LCD gadgets from ibm with
backlights connected to the ThinkPad...

This patch renames the main backlight device from "ibm" to
"thinkpad_builtin_screen", which is far more descriptive and future-proof.

Maybe the backlight devices refering to the built-in screen of laptops
should even be renamed to just "builtin_screen" on all of the drivers?

Please comment.

Signed-off-by: Henrique de Moraes Holschuh <hmh@xxxxxxxxxx>
Cc: Borislav Deianov <borislav@xxxxxxxxxxxxxxxxxxxxx>
Cc: Holger Macht <hmacht@xxxxxxx>
Cc: Andy Whitcroft <apw@xxxxxxxxxxxx>

Index: 2.6.18/drivers/acpi/ibm_acpi.c
===================================================================
--- 2.6.18.orig/drivers/acpi/ibm_acpi.c
+++ 2.6.18/drivers/acpi/ibm_acpi.c
@@ -2072,10 +2072,10 @@ static int __init acpi_ibm_init(void)
 		}
 	}
 
-	ibm_backlight_device = backlight_device_register("ibm", NULL,
+	ibm_backlight_device = backlight_device_register("thinkpad_builtin_screen", NULL,
 							 &ibm_backlight_data);
         if (IS_ERR(ibm_backlight_device)) {
-		printk(IBM_ERR "Could not register ibm backlight device\n");
+		printk(IBM_ERR "Could not register thinkpad_builtin_screen backlight device\n");
 		ibm_backlight_device = NULL;
 		acpi_ibm_exit();
 	}
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux