mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-27 22:51:31 +00:00
power: supply: axp288_fuel_gauge: Sort the DMI blacklist alphabetically
The blacklist is getting big enough that it is good to have some sort of fixed order for it, sort it alphabetically. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
f1b937cc86
commit
6f3ed83471
1 changed files with 7 additions and 6 deletions
|
@ -674,6 +674,7 @@ static void fuel_gauge_init_irq(struct axp288_fg_info *info)
|
||||||
/*
|
/*
|
||||||
* Some devices have no battery (HDMI sticks) and the axp288 battery's
|
* Some devices have no battery (HDMI sticks) and the axp288 battery's
|
||||||
* detection reports one despite it not being there.
|
* detection reports one despite it not being there.
|
||||||
|
* Please keep this listed sorted alphabetically.
|
||||||
*/
|
*/
|
||||||
static const struct dmi_system_id axp288_fuel_gauge_blacklist[] = {
|
static const struct dmi_system_id axp288_fuel_gauge_blacklist[] = {
|
||||||
{
|
{
|
||||||
|
@ -696,6 +697,12 @@ static const struct dmi_system_id axp288_fuel_gauge_blacklist[] = {
|
||||||
DMI_EXACT_MATCH(DMI_BIOS_VERSION, "1.000"),
|
DMI_EXACT_MATCH(DMI_BIOS_VERSION, "1.000"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
/* ECS EF20EA */
|
||||||
|
.matches = {
|
||||||
|
DMI_MATCH(DMI_PRODUCT_NAME, "EF20EA"),
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
/* Intel Cherry Trail Compute Stick, Windows version */
|
/* Intel Cherry Trail Compute Stick, Windows version */
|
||||||
.matches = {
|
.matches = {
|
||||||
|
@ -719,12 +726,6 @@ static const struct dmi_system_id axp288_fuel_gauge_blacklist[] = {
|
||||||
DMI_MATCH(DMI_BOARD_VERSION, "V1.1"),
|
DMI_MATCH(DMI_BOARD_VERSION, "V1.1"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
/* ECS EF20EA */
|
|
||||||
.matches = {
|
|
||||||
DMI_MATCH(DMI_PRODUCT_NAME, "EF20EA"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue