Commit 67186653 authored by Andy Shevchenko's avatar Andy Shevchenko

platform/x86: asus-nb-wmi: Drop duplicate DMI quirk structures

There is no need to repeat the same data structure for a quirk.
Drop a duplicate and rename to be more generic.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 066d7f32
...@@ -110,12 +110,7 @@ static struct quirk_entry quirk_asus_forceals = { ...@@ -110,12 +110,7 @@ static struct quirk_entry quirk_asus_forceals = {
.wmi_force_als_set = true, .wmi_force_als_set = true,
}; };
static struct quirk_entry quirk_asus_ga401i = { static struct quirk_entry quirk_asus_vendor_backlight = {
.wmi_backlight_power = true,
.wmi_backlight_set_devstate = true,
};
static struct quirk_entry quirk_asus_ga502i = {
.wmi_backlight_power = true, .wmi_backlight_power = true,
.wmi_backlight_set_devstate = true, .wmi_backlight_set_devstate = true,
}; };
...@@ -428,7 +423,7 @@ static const struct dmi_system_id asus_quirks[] = { ...@@ -428,7 +423,7 @@ static const struct dmi_system_id asus_quirks[] = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_MATCH(DMI_PRODUCT_NAME, "GA401IH"), DMI_MATCH(DMI_PRODUCT_NAME, "GA401IH"),
}, },
.driver_data = &quirk_asus_ga401i, .driver_data = &quirk_asus_vendor_backlight,
}, },
{ {
.callback = dmi_matched, .callback = dmi_matched,
...@@ -437,7 +432,7 @@ static const struct dmi_system_id asus_quirks[] = { ...@@ -437,7 +432,7 @@ static const struct dmi_system_id asus_quirks[] = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_MATCH(DMI_PRODUCT_NAME, "GA401II"), DMI_MATCH(DMI_PRODUCT_NAME, "GA401II"),
}, },
.driver_data = &quirk_asus_ga401i, .driver_data = &quirk_asus_vendor_backlight,
}, },
{ {
.callback = dmi_matched, .callback = dmi_matched,
...@@ -446,7 +441,7 @@ static const struct dmi_system_id asus_quirks[] = { ...@@ -446,7 +441,7 @@ static const struct dmi_system_id asus_quirks[] = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_MATCH(DMI_PRODUCT_NAME, "GA401IU"), DMI_MATCH(DMI_PRODUCT_NAME, "GA401IU"),
}, },
.driver_data = &quirk_asus_ga401i, .driver_data = &quirk_asus_vendor_backlight,
}, },
{ {
.callback = dmi_matched, .callback = dmi_matched,
...@@ -455,7 +450,7 @@ static const struct dmi_system_id asus_quirks[] = { ...@@ -455,7 +450,7 @@ static const struct dmi_system_id asus_quirks[] = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_MATCH(DMI_PRODUCT_NAME, "GA401IV"), DMI_MATCH(DMI_PRODUCT_NAME, "GA401IV"),
}, },
.driver_data = &quirk_asus_ga401i, .driver_data = &quirk_asus_vendor_backlight,
}, },
{ {
.callback = dmi_matched, .callback = dmi_matched,
...@@ -464,7 +459,7 @@ static const struct dmi_system_id asus_quirks[] = { ...@@ -464,7 +459,7 @@ static const struct dmi_system_id asus_quirks[] = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_MATCH(DMI_PRODUCT_NAME, "GA401IVC"), DMI_MATCH(DMI_PRODUCT_NAME, "GA401IVC"),
}, },
.driver_data = &quirk_asus_ga401i, .driver_data = &quirk_asus_vendor_backlight,
}, },
{ {
.callback = dmi_matched, .callback = dmi_matched,
...@@ -473,7 +468,7 @@ static const struct dmi_system_id asus_quirks[] = { ...@@ -473,7 +468,7 @@ static const struct dmi_system_id asus_quirks[] = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_MATCH(DMI_PRODUCT_NAME, "GA502II"), DMI_MATCH(DMI_PRODUCT_NAME, "GA502II"),
}, },
.driver_data = &quirk_asus_ga502i, .driver_data = &quirk_asus_vendor_backlight,
}, },
{ {
.callback = dmi_matched, .callback = dmi_matched,
...@@ -482,7 +477,7 @@ static const struct dmi_system_id asus_quirks[] = { ...@@ -482,7 +477,7 @@ static const struct dmi_system_id asus_quirks[] = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_MATCH(DMI_PRODUCT_NAME, "GA502IU"), DMI_MATCH(DMI_PRODUCT_NAME, "GA502IU"),
}, },
.driver_data = &quirk_asus_ga502i, .driver_data = &quirk_asus_vendor_backlight,
}, },
{ {
.callback = dmi_matched, .callback = dmi_matched,
...@@ -491,7 +486,7 @@ static const struct dmi_system_id asus_quirks[] = { ...@@ -491,7 +486,7 @@ static const struct dmi_system_id asus_quirks[] = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_MATCH(DMI_PRODUCT_NAME, "GA502IV"), DMI_MATCH(DMI_PRODUCT_NAME, "GA502IV"),
}, },
.driver_data = &quirk_asus_ga502i, .driver_data = &quirk_asus_vendor_backlight,
}, },
{}, {},
}; };
......
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