Skip to content

Commit

Permalink
acer-wmi: Add EC quirk for Fujitsu Siemens Amilo Li 1718
Browse files Browse the repository at this point in the history
This laptop needs a different EC quirk from the standard Acer one to read
the wireless status.

Signed-off-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
  • Loading branch information
Carlos Corbacho authored and Andi Kleen committed Jul 16, 2008
1 parent f2b585b commit 6f061ab
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions drivers/misc/acer-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ static struct quirk_entry quirk_medion_md_98300 = {
.wireless = 1,
};

static struct quirk_entry quirk_fujitsu_amilo_li_1718 = {
.wireless = 2,
};

static struct dmi_system_id acer_quirks[] = {
{
.callback = dmi_matched,
Expand Down Expand Up @@ -321,6 +325,15 @@ static struct dmi_system_id acer_quirks[] = {
},
.driver_data = &quirk_acer_travelmate_2490,
},
{
.callback = dmi_matched,
.ident = "Fujitsu Siemens Amilo Li 1718",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Li 1718"),
},
.driver_data = &quirk_fujitsu_amilo_li_1718,
},
{
.callback = dmi_matched,
.ident = "Medion MD 98300",
Expand Down Expand Up @@ -416,6 +429,12 @@ struct wmi_interface *iface)
return AE_ERROR;
*value = result & 0x1;
return AE_OK;
case 2:
err = ec_read(0x71, &result);
if (err)
return AE_ERROR;
*value = result & 0x1;
return AE_OK;
default:
err = ec_read(0xA, &result);
if (err)
Expand Down

0 comments on commit 6f061ab

Please sign in to comment.