Message ID | 20190804152142.7956-1-kristian@klausen.dk (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
Series | platform/x86: asus-nb-wmi: Support ALS on the Zenbook UX430UNR | expand |
On Sun, Aug 4, 2019 at 6:32 PM Kristian Klausen <kristian@klausen.dk> wrote: > > This patch adds support for ALS on the Zenbook UX430UNR to the asus_nb_wmi > driver. > Pushed to my review and testing queue, thanks! > Signed-off-by: Kristian Klausen <kristian@klausen.dk> > --- > There is a few other laptops in the UX430 series (UX430UA, UX430UN, > UX430UAR), which probably need the same fix. > Would it be better to match against UX430? Let's see when we need to add next one. > > drivers/platform/x86/asus-nb-wmi.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c > index 2ebde0174937..b361c73636a4 100644 > --- a/drivers/platform/x86/asus-nb-wmi.c > +++ b/drivers/platform/x86/asus-nb-wmi.c > @@ -402,6 +402,15 @@ static const struct dmi_system_id asus_quirks[] = { > }, > .driver_data = &quirk_asus_forceals, > }, > + { > + .callback = dmi_matched, > + .ident = "ASUSTeK COMPUTER INC. UX430UNR", > + .matches = { > + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), > + DMI_MATCH(DMI_PRODUCT_NAME, "UX430UNR"), > + }, > + .driver_data = &quirk_asus_forceals, > + }, > {}, > }; > > -- > 2.22.0 >
diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c index 2ebde0174937..b361c73636a4 100644 --- a/drivers/platform/x86/asus-nb-wmi.c +++ b/drivers/platform/x86/asus-nb-wmi.c @@ -402,6 +402,15 @@ static const struct dmi_system_id asus_quirks[] = { }, .driver_data = &quirk_asus_forceals, }, + { + .callback = dmi_matched, + .ident = "ASUSTeK COMPUTER INC. UX430UNR", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "UX430UNR"), + }, + .driver_data = &quirk_asus_forceals, + }, {}, };
This patch adds support for ALS on the Zenbook UX430UNR to the asus_nb_wmi driver. Signed-off-by: Kristian Klausen <kristian@klausen.dk> --- There is a few other laptops in the UX430 series (UX430UA, UX430UN, UX430UAR), which probably need the same fix. Would it be better to match against UX430? drivers/platform/x86/asus-nb-wmi.c | 9 +++++++++ 1 file changed, 9 insertions(+)