Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297015
b: refs/heads/master
c: 6a2bccc
h: refs/heads/master
i:
  297013: fd9f452
  297011: 09d98c9
  297007: d59700a
v: v3
  • Loading branch information
Corentin Chary authored and Matthew Garrett committed Mar 26, 2012
1 parent 600bd4f commit 7207a7b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e0044bedc1fc94a61cc32fa25dcab9a4e4a9218
refs/heads/master: 6a2bcccdb3206950d28e343476d9050e23e79b7e
6 changes: 5 additions & 1 deletion trunk/drivers/platform/x86/asus-nb-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,13 @@ static uint wapf;
module_param(wapf, uint, 0444);
MODULE_PARM_DESC(wapf, "WAPF value");

static struct quirk_entry quirk_asus_unknown = {
};

static void asus_nb_wmi_quirks(struct asus_wmi_driver *driver)
{
driver->wapf = wapf;
driver->quirks = &quirk_asus_unknown;
driver->quirks->wapf = wapf;
}

static const struct key_entry asus_nb_wmi_keymap[] = {
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/platform/x86/asus-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1471,9 +1471,9 @@ static int asus_wmi_platform_init(struct asus_wmi *asus)

/* CWAP allow to define the behavior of the Fn+F2 key,
* this method doesn't seems to be present on Eee PCs */
if (asus->driver->wapf >= 0)
if (asus->driver->quirks->wapf >= 0)
asus_wmi_set_devstate(ASUS_WMI_DEVID_CWAP,
asus->driver->wapf, NULL);
asus->driver->quirks->wapf, NULL);

return asus_wmi_sysfs_init(asus->platform_device);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/platform/x86/asus-wmi.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ struct quirk_entry {
bool hotplug_wireless;
bool scalar_panel_brightness;
bool store_backlight_power;
int wapf;
};

struct asus_wmi_driver {
int wapf;
int brightness;
int panel_power;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/platform/x86/eeepc-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ static int eeepc_wmi_probe(struct platform_device *pdev)

static void eeepc_wmi_quirks(struct asus_wmi_driver *driver)
{
driver->wapf = -1;
driver->panel_power = FB_BLANK_UNBLANK;
driver->quirks = &quirk_asus_unknown;
driver->quirks->hotplug_wireless = hotplug_wireless;
driver->quirks->wapf = -1;
dmi_check_system(asus_quirks);
driver->quirks = quirks;
}
Expand Down

0 comments on commit 7207a7b

Please sign in to comment.