updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / eeemodules / acpi.patch
blobfd16c7a690c0858cc247fe71ba11a89ac04f66cf
1 --- asus_acpi.c.orig 2007-11-26 05:46:58.000000000 +0100
2 +++ asus_acpi.c 2007-12-21 03:15:45.000000000 +0100
3 @@ -158,10 +158,15 @@ static struct eeepc_hotk *ehotk;
4 static int eeepc_hotk_add(struct acpi_device *device);
5 static int eeepc_hotk_remove(struct acpi_device *device, int type);
7 +static const struct acpi_device_id eee_device_ids[] = {
8 + {EEEPC_HOTK_HID, 0},
9 + {"", 0}
10 +};
12 static struct acpi_driver eeepc_hotk_driver = {
13 .name = "eeepc_acpi",
14 .class = EEEPC_HOTK_CLASS,
15 - .ids = EEEPC_HOTK_HID,
16 + .ids = eee_device_ids,
17 .ops = {
18 .add = eeepc_hotk_add,
19 .remove = eeepc_hotk_remove,
20 @@ -547,7 +552,7 @@ static int asus_hotk_remove(struct acpi_
21 static struct acpi_driver asus_hotk_driver = {
22 .name = "asus_acpi",
23 .class = ACPI_HOTK_CLASS,
24 - .ids = ACPI_HOTK_HID,
25 + .ids = eee_device_ids,
26 .ops = {
27 .add = asus_hotk_add,
28 .remove = asus_hotk_remove,
29 @@ -1178,7 +1183,7 @@ static void asus_hotk_notify(acpi_handle
30 hotk->brightness = (event & ~((u32) BR_DOWN));
33 - acpi_bus_generate_event(hotk->device, event,
34 + acpi_bus_generate_proc_event(hotk->device, event,
35 hotk->event_count[event % 128]++);
37 return;
38 @@ -1785,7 +1790,7 @@ eeepc_hotk_notify(acpi_handle handle, u3
39 event = 0x11;
42 - acpi_bus_generate_event(ehotk->device, event, ehotk->event_count[event % 128]++);
43 + acpi_bus_generate_proc_event(ehotk->device, event, ehotk->event_count[event % 128]++);
45 return;