Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.25-rc5-git7 /drivers/misc/acer-wmi.c

Filename:/drivers/misc/acer-wmi.c
Lines Added:31
Lines Deleted:13
Also changed in: (Previous) 2.6.25-rc5-git6  2.6.25-rc5-git5  2.6.25-rc5-git4  2.6.25-rc5  2.6.25-rc4  2.6.25-rc3 
(Following) 2.6.25-rc6  2.6.25-rc7  2.6.25-rc8  2.6.25-rc9  2.6.25  2.6.25.16-rc1 

Location
[  2.6.25-rc5-git7
  [  drivers
    [  misc
       o  acer-wmi.c

Patch

diff --git a/drivers/misc/acer-wmi.c b/drivers/misc/acer-wmi.c
index 74d12b4..dd13a37 100644
--- a/drivers/misc/acer-wmi.c
+++ b/drivers/misc/acer-wmi.c
@@ -219,6 +219,15 @@ static struct dmi_system_id acer_quirks[] = {
    },
    {
       .callback = dmi_matched,
+      .ident = "Acer Aspire 3610",
+      .matches = {
+         DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
+         DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 3610"),
+      },
+      .driver_data = &quirk_acer_travelmate_2490,
+   },
+   {
+      .callback = dmi_matched,
       .ident = "Acer Aspire 5100",
       .matches = {
          DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
@@ -228,6 +237,15 @@ static struct dmi_system_id acer_quirks[] = {
    },
    {
       .callback = dmi_matched,
+      .ident = "Acer Aspire 5610",
+      .matches = {
+         DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
+         DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5610"),
+      },
+      .driver_data = &quirk_acer_travelmate_2490,
+   },
+   {
+      .callback = dmi_matched,
       .ident = "Acer Aspire 5630",
       .matches = {
          DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
@@ -761,11 +779,11 @@ enum led_brightness value)
 }
 
 static struct led_classdev mail_led = {
-   .name = "acer-mail:green",
+   .name = "acer-wmi::mail",
    .brightness_set = mail_led_set,
 };
 
-static int __init acer_led_init(struct device *dev)
+static int __devinit acer_led_init(struct device *dev)
 {
    return led_classdev_register(dev, &mail_led);
 }
@@ -798,7 +816,7 @@ static struct backlight_ops acer_bl_ops = {
    .update_status = update_bl_status,
 };
 
-static int __init acer_backlight_init(struct device *dev)
+static int __devinit acer_backlight_init(struct device *dev)
 {
    struct backlight_device *bd;
 
@@ -817,7 +835,7 @@ static int __init acer_backlight_init(struct device *dev)
    return 0;
 }
 
-static void __exit acer_backlight_exit(void)
+static void acer_backlight_exit(void)
 {
    backlight_device_unregister(acer_backlight_device);
 }
@@ -1052,11 +1070,12 @@ static int __init acer_wmi_init(void)
 
    if (wmi_has_guid(WMID_GUID2) && interface) {
       if (ACPI_FAILURE(WMID_set_capabilities())) {
-         printk(ACER_ERR "Unable to detect available devices\n");
+         printk(ACER_ERR "Unable to detect available WMID "
+               "devices\n");
          return -ENODEV;
       }
    } else if (!wmi_has_guid(WMID_GUID2) && interface) {
-      printk(ACER_ERR "Unable to detect available devices\n");
+      printk(ACER_ERR "No WMID device detection method found\n");
       return -ENODEV;
    }
 
@@ -1064,21 +1083,20 @@ static int __init acer_wmi_init(void)
       interface = &AMW0_interface;
 
       if (ACPI_FAILURE(AMW0_set_capabilities())) {
-         printk(ACER_ERR "Unable to detect available devices\n");
+         printk(ACER_ERR "Unable to detect available AMW0 "
+               "devices\n");
          return -ENODEV;
       }
    }
 
-   if (wmi_has_guid(AMW0_GUID1)) {
-      if (ACPI_FAILURE(AMW0_find_mailled()))
-         printk(ACER_ERR "Unable to detect mail LED\n");
-   }
+   if (wmi_has_guid(AMW0_GUID1))
+      AMW0_find_mailled();
 
    find_quirks();
 
    if (!interface) {
-      printk(ACER_ERR "No or unsupported WMI interface, unable to ");
-      printk(KERN_CONT "load.\n");
+      printk(ACER_ERR "No or unsupported WMI interface, unable to "
+            "load\n");
       return -ENODEV;
    }
 


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.