Skip to contentSkip to conversation

ibm-acpi: rename backlight device

PATCH Henrique de Moraes Holschuh 1 participant 1 message Oct 28, 2006 ACPI

lore
Share & tools
lore
#0 lore raw

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.

Cc Borislav Deianov <[email protected]>
Cc Holger Macht <[email protected]>
Cc Andy Whitcroft <[email protected]>
drivers/acpi/ibm_acpi.c +2 -2
Index: 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();
 	}