Commit c55d995d authored by Corentin Chary's avatar Corentin Chary Committed by Matthew Garrett

eeepc-wmi: refine quirks handling

Signed-off-by: default avatarCorentin Chary <corentin.chary@gmail.com>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent fb05b9f5
...@@ -49,7 +49,6 @@ MODULE_LICENSE("GPL"); ...@@ -49,7 +49,6 @@ MODULE_LICENSE("GPL");
MODULE_ALIAS("wmi:"EEEPC_WMI_EVENT_GUID); MODULE_ALIAS("wmi:"EEEPC_WMI_EVENT_GUID);
static struct quirk_entry *quirks;
static bool hotplug_wireless; static bool hotplug_wireless;
module_param(hotplug_wireless, bool, 0444); module_param(hotplug_wireless, bool, 0444);
...@@ -108,6 +107,8 @@ static struct quirk_entry quirk_asus_et2012_type3 = { ...@@ -108,6 +107,8 @@ static struct quirk_entry quirk_asus_et2012_type3 = {
.store_backlight_power = true, .store_backlight_power = true,
}; };
static struct quirk_entry *quirks;
static int dmi_matched(const struct dmi_system_id *dmi) static int dmi_matched(const struct dmi_system_id *dmi)
{ {
char *model; char *model;
...@@ -209,12 +210,14 @@ static int eeepc_wmi_probe(struct platform_device *pdev) ...@@ -209,12 +210,14 @@ static int eeepc_wmi_probe(struct platform_device *pdev)
static void eeepc_wmi_quirks(struct asus_wmi_driver *driver) static void eeepc_wmi_quirks(struct asus_wmi_driver *driver)
{ {
driver->panel_power = FB_BLANK_UNBLANK; quirks = &quirk_asus_unknown;
driver->quirks = &quirk_asus_unknown; quirks->hotplug_wireless = hotplug_wireless;
driver->quirks->hotplug_wireless = hotplug_wireless;
driver->quirks->wapf = -1;
dmi_check_system(asus_quirks); dmi_check_system(asus_quirks);
driver->quirks = quirks; driver->quirks = quirks;
driver->quirks->wapf = -1;
driver->panel_power = FB_BLANK_UNBLANK;
} }
static struct asus_wmi_driver asus_wmi_driver = { static struct asus_wmi_driver asus_wmi_driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment