Skip to content

Commit 8c3f699

Browse files
jwrdegoederafaeljw
authored andcommitted
ACPI / battery: Cleanup Lenovo Ideapad Miix 320 DMI table entry
The Lenovo Ideapad Miix 320 bat_dmi_table entry is using weird indentation and is the only entry which (unnecessarily) uses DMI_EXACT_MATCH instead of DMI_MATCH, fixup both to make the entry consistent with the others. While at it also update the comments for battery_do_not_check_pmic_quirk entries, adding a bit of text explaining why the quirk is necessary. Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 04900fa commit 8c3f699

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/acpi/battery.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,19 +1365,19 @@ static const struct dmi_system_id bat_dmi_table[] __initconst = {
13651365
},
13661366
},
13671367
{
1368-
/* ECS EF20EA */
1368+
/* ECS EF20EA, AXP288 PMIC but uses separate fuel-gauge */
13691369
.callback = battery_do_not_check_pmic_quirk,
13701370
.matches = {
13711371
DMI_MATCH(DMI_PRODUCT_NAME, "EF20EA"),
13721372
},
13731373
},
13741374
{
1375-
/* Lenovo Ideapad Miix 320 */
1375+
/* Lenovo Ideapad Miix 320, AXP288 PMIC, separate fuel-gauge */
13761376
.callback = battery_do_not_check_pmic_quirk,
13771377
.matches = {
1378-
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
1379-
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "80XF"),
1380-
DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo MIIX 320-10ICR"),
1378+
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
1379+
DMI_MATCH(DMI_PRODUCT_NAME, "80XF"),
1380+
DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo MIIX 320-10ICR"),
13811381
},
13821382
},
13831383
{},

0 commit comments

Comments
 (0)