updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / eeemodules-hal / asus_acpi_backlight.patch
blobe3bade822e71b5d1e09ce39ff2162b50991048ed
1 diff -rauN asus_acpi/asus_acpi.c asus_acpi_backlight_patch/asus_acpi.c
2 --- asus_acpi/asus_acpi.c 2010-09-09 18:11:45.000000000 +0200
3 +++ asus_acpi_backlight_patch/asus_acpi.c 2010-09-09 18:12:23.000000000 +0200
4 @@ -1495,6 +1495,7 @@
5 static int __init asus_acpi_init(void)
7 int result;
8 + struct backlight_properties props;
10 if (acpi_disabled)
11 return -ENODEV;
12 @@ -1526,8 +1527,11 @@
13 return result;
16 + memset(&props, 0, sizeof(struct backlight_properties));
17 + props.max_brightness = 20 - 1;
19 asus_backlight_device = backlight_device_register("asus",NULL,NULL,
20 - &asus_backlight_data);
21 + &asus_backlight_data,&props);
22 if (IS_ERR(asus_backlight_device)) {
23 printk(KERN_ERR "Could not register asus backlight device\n");
24 asus_backlight_device = NULL;