diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-10-28 11:26:12 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-28 11:26:12 -0400 |
commit | 7a9787e1eba95a166265e6a260cf30af04ef0a99 (patch) | |
tree | e730a4565e0318140d2fbd2f0415d18a339d7336 /drivers/misc/asus-laptop.c | |
parent | 41b9eb264c8407655db57b60b4457fe1b2ec9977 (diff) | |
parent | 0173a3265b228da319ceb9c1ec6a5682fd1b2d92 (diff) |
Merge commit 'v2.6.28-rc2' into x86/pci-ioapic-boot-irq-quirks
Diffstat (limited to 'drivers/misc/asus-laptop.c')
-rw-r--r-- | drivers/misc/asus-laptop.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/misc/asus-laptop.c b/drivers/misc/asus-laptop.c index 7c6dfd03de9f..a9d5228724a6 100644 --- a/drivers/misc/asus-laptop.c +++ b/drivers/misc/asus-laptop.c | |||
@@ -139,6 +139,7 @@ ASUS_HANDLE(lcd_switch, "\\_SB.PCI0.SBRG.EC0._Q10", /* All new models */ | |||
139 | "\\_SB.PCI0.PX40.ECD0._Q10", /* L3C */ | 139 | "\\_SB.PCI0.PX40.ECD0._Q10", /* L3C */ |
140 | "\\_SB.PCI0.PX40.EC0.Q10", /* M1A */ | 140 | "\\_SB.PCI0.PX40.EC0.Q10", /* M1A */ |
141 | "\\_SB.PCI0.LPCB.EC0._Q10", /* P30 */ | 141 | "\\_SB.PCI0.LPCB.EC0._Q10", /* P30 */ |
142 | "\\_SB.PCI0.LPCB.EC0._Q0E", /* P30/P35 */ | ||
142 | "\\_SB.PCI0.PX40.Q10", /* S1x */ | 143 | "\\_SB.PCI0.PX40.Q10", /* S1x */ |
143 | "\\Q10"); /* A2x, L2D, L3D, M2E */ | 144 | "\\Q10"); /* A2x, L2D, L3D, M2E */ |
144 | 145 | ||
@@ -280,7 +281,7 @@ static int write_acpi_int(acpi_handle handle, const char *method, int val, | |||
280 | 281 | ||
281 | static int read_wireless_status(int mask) | 282 | static int read_wireless_status(int mask) |
282 | { | 283 | { |
283 | ulong status; | 284 | unsigned long long status; |
284 | acpi_status rv = AE_OK; | 285 | acpi_status rv = AE_OK; |
285 | 286 | ||
286 | if (!wireless_status_handle) | 287 | if (!wireless_status_handle) |
@@ -297,7 +298,7 @@ static int read_wireless_status(int mask) | |||
297 | 298 | ||
298 | static int read_gps_status(void) | 299 | static int read_gps_status(void) |
299 | { | 300 | { |
300 | ulong status; | 301 | unsigned long long status; |
301 | acpi_status rv = AE_OK; | 302 | acpi_status rv = AE_OK; |
302 | 303 | ||
303 | rv = acpi_evaluate_integer(gps_status_handle, NULL, NULL, &status); | 304 | rv = acpi_evaluate_integer(gps_status_handle, NULL, NULL, &status); |
@@ -350,7 +351,7 @@ static void write_status(acpi_handle handle, int out, int mask) | |||
350 | static void object##_led_set(struct led_classdev *led_cdev, \ | 351 | static void object##_led_set(struct led_classdev *led_cdev, \ |
351 | enum led_brightness value) \ | 352 | enum led_brightness value) \ |
352 | { \ | 353 | { \ |
353 | object##_led_wk = value; \ | 354 | object##_led_wk = (value > 0) ? 1 : 0; \ |
354 | queue_work(led_workqueue, &object##_led_work); \ | 355 | queue_work(led_workqueue, &object##_led_work); \ |
355 | } \ | 356 | } \ |
356 | static void object##_led_update(struct work_struct *ignored) \ | 357 | static void object##_led_update(struct work_struct *ignored) \ |
@@ -404,7 +405,7 @@ static void lcd_blank(int blank) | |||
404 | 405 | ||
405 | static int read_brightness(struct backlight_device *bd) | 406 | static int read_brightness(struct backlight_device *bd) |
406 | { | 407 | { |
407 | ulong value; | 408 | unsigned long long value; |
408 | acpi_status rv = AE_OK; | 409 | acpi_status rv = AE_OK; |
409 | 410 | ||
410 | rv = acpi_evaluate_integer(brightness_get_handle, NULL, NULL, &value); | 411 | rv = acpi_evaluate_integer(brightness_get_handle, NULL, NULL, &value); |
@@ -455,7 +456,7 @@ static ssize_t show_infos(struct device *dev, | |||
455 | struct device_attribute *attr, char *page) | 456 | struct device_attribute *attr, char *page) |
456 | { | 457 | { |
457 | int len = 0; | 458 | int len = 0; |
458 | ulong temp; | 459 | unsigned long long temp; |
459 | char buf[16]; //enough for all info | 460 | char buf[16]; //enough for all info |
460 | acpi_status rv = AE_OK; | 461 | acpi_status rv = AE_OK; |
461 | 462 | ||
@@ -603,7 +604,7 @@ static void set_display(int value) | |||
603 | 604 | ||
604 | static int read_display(void) | 605 | static int read_display(void) |
605 | { | 606 | { |
606 | ulong value = 0; | 607 | unsigned long long value = 0; |
607 | acpi_status rv = AE_OK; | 608 | acpi_status rv = AE_OK; |
608 | 609 | ||
609 | /* In most of the case, we know how to set the display, but sometime | 610 | /* In most of the case, we know how to set the display, but sometime |
@@ -849,7 +850,7 @@ static int asus_hotk_get_info(void) | |||
849 | { | 850 | { |
850 | struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; | 851 | struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; |
851 | union acpi_object *model = NULL; | 852 | union acpi_object *model = NULL; |
852 | ulong bsts_result, hwrs_result; | 853 | unsigned long long bsts_result, hwrs_result; |
853 | char *string = NULL; | 854 | char *string = NULL; |
854 | acpi_status status; | 855 | acpi_status status; |
855 | 856 | ||
@@ -996,7 +997,7 @@ static int asus_hotk_add(struct acpi_device *device) | |||
996 | hotk->handle = device->handle; | 997 | hotk->handle = device->handle; |
997 | strcpy(acpi_device_name(device), ASUS_HOTK_DEVICE_NAME); | 998 | strcpy(acpi_device_name(device), ASUS_HOTK_DEVICE_NAME); |
998 | strcpy(acpi_device_class(device), ASUS_HOTK_CLASS); | 999 | strcpy(acpi_device_class(device), ASUS_HOTK_CLASS); |
999 | acpi_driver_data(device) = hotk; | 1000 | device->driver_data = hotk; |
1000 | hotk->device = device; | 1001 | hotk->device = device; |
1001 | 1002 | ||
1002 | result = asus_hotk_check(); | 1003 | result = asus_hotk_check(); |