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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
Andy Shevchenko 2020-08-02 14:07:04 +03:00
parent 066d7f32cc
commit 67186653c9

View File

@ -110,12 +110,7 @@ static struct quirk_entry quirk_asus_forceals = {
.wmi_force_als_set = true,
};
static struct quirk_entry quirk_asus_ga401i = {
.wmi_backlight_power = true,
.wmi_backlight_set_devstate = true,
};
static struct quirk_entry quirk_asus_ga502i = {
static struct quirk_entry quirk_asus_vendor_backlight = {
.wmi_backlight_power = true,
.wmi_backlight_set_devstate = true,
};
@ -428,7 +423,7 @@ static const struct dmi_system_id asus_quirks[] = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_MATCH(DMI_PRODUCT_NAME, "GA401IH"),
},
.driver_data = &quirk_asus_ga401i,
.driver_data = &quirk_asus_vendor_backlight,
},
{
.callback = dmi_matched,
@ -437,7 +432,7 @@ static const struct dmi_system_id asus_quirks[] = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_MATCH(DMI_PRODUCT_NAME, "GA401II"),
},
.driver_data = &quirk_asus_ga401i,
.driver_data = &quirk_asus_vendor_backlight,
},
{
.callback = dmi_matched,
@ -446,7 +441,7 @@ static const struct dmi_system_id asus_quirks[] = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_MATCH(DMI_PRODUCT_NAME, "GA401IU"),
},
.driver_data = &quirk_asus_ga401i,
.driver_data = &quirk_asus_vendor_backlight,
},
{
.callback = dmi_matched,
@ -455,7 +450,7 @@ static const struct dmi_system_id asus_quirks[] = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_MATCH(DMI_PRODUCT_NAME, "GA401IV"),
},
.driver_data = &quirk_asus_ga401i,
.driver_data = &quirk_asus_vendor_backlight,
},
{
.callback = dmi_matched,
@ -464,7 +459,7 @@ static const struct dmi_system_id asus_quirks[] = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_MATCH(DMI_PRODUCT_NAME, "GA401IVC"),
},
.driver_data = &quirk_asus_ga401i,
.driver_data = &quirk_asus_vendor_backlight,
},
{
.callback = dmi_matched,
@ -473,7 +468,7 @@ static const struct dmi_system_id asus_quirks[] = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_MATCH(DMI_PRODUCT_NAME, "GA502II"),
},
.driver_data = &quirk_asus_ga502i,
.driver_data = &quirk_asus_vendor_backlight,
},
{
.callback = dmi_matched,
@ -482,7 +477,7 @@ static const struct dmi_system_id asus_quirks[] = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_MATCH(DMI_PRODUCT_NAME, "GA502IU"),
},
.driver_data = &quirk_asus_ga502i,
.driver_data = &quirk_asus_vendor_backlight,
},
{
.callback = dmi_matched,
@ -491,7 +486,7 @@ static const struct dmi_system_id asus_quirks[] = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_MATCH(DMI_PRODUCT_NAME, "GA502IV"),
},
.driver_data = &quirk_asus_ga502i,
.driver_data = &quirk_asus_vendor_backlight,
},
{},
};