lkml.org 
[lkml]   [2023]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL 5.10 21/27] ACPI: video: Fix Lenovo Ideapad Z570 DMI match
    Date
    From: Hans de Goede <hdegoede@redhat.com>

    [ Upstream commit 2d11eae42d52a131f06061015e49dc0f085c5bfc ]

    Multiple Ideapad Z570 variants need acpi_backlight=native to force native
    use on these pre Windows 8 machines since acpi_video backlight control
    does not work here.

    The original DMI quirk matches on a product_name of "102434U" but other
    variants may have different product_name-s such as e.g. "1024D9U".

    Move to checking product_version instead as is more or less standard for
    Lenovo DMI quirks for similar reasons.

    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/acpi/video_detect.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c
    index b13713199ad94..038542b3a80a7 100644
    --- a/drivers/acpi/video_detect.c
    +++ b/drivers/acpi/video_detect.c
    @@ -313,7 +313,7 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
    .ident = "Lenovo Ideapad Z570",
    .matches = {
    DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
    - DMI_MATCH(DMI_PRODUCT_NAME, "102434U"),
    + DMI_MATCH(DMI_PRODUCT_VERSION, "Ideapad Z570"),
    },
    },
    {
    --
    2.39.0
    \
     
     \ /
      Last update: 2023-03-27 00:36    [W:4.051 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site