mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 15:13:55 +08:00
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:
parent
066d7f32cc
commit
67186653c9
@ -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[] = {
|
|||||||
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[] = {
|
|||||||
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[] = {
|
|||||||
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[] = {
|
|||||||
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[] = {
|
|||||||
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[] = {
|
|||||||
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[] = {
|
|||||||
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[] = {
|
|||||||
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,
|
||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user