asus-wmi: move WAPF variable into quirks_entry
Some models work better with different values of wapf, so move the variable into quriks_entry to make it more easy to give a specific value to different models. Based on original patch from AceLan Kao <acelan.kao@canonical.com> Cc: AceLan Kao <acelan.kao@canonical.com> Signed-off-by: Corentin Chary <corentin.chary@gmail.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
This commit is contained in:

committed by
Matthew Garrett

parent
6e0044bedc
commit
6a2bcccdb3
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user