Skip to content

Commit

Permalink
power: supply: axp288_fuel_gauge: Rename fuel_gauge_blacklist to no_b…
Browse files Browse the repository at this point in the history
…attery_list

As documented in the updated "Naming" chapter of
Documentation/process/coding-style.rst, usage of the work blacklist
should be avoided where possible.

Rename the list of devices which have no battery to the
axp288_no_battery_list, which also more accurately describes the
contents of the list.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
  • Loading branch information
Hans de Goede authored and Sebastian Reichel committed Jun 29, 2021
1 parent df6f3f7 commit 0973e96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/power/supply/axp288_fuel_gauge.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ static void fuel_gauge_init_irq(struct axp288_fg_info *info)
* 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_no_battery_list[] = {
{
/* ACEPC T8 Cherry Trail Z8350 mini PC */
.matches = {
Expand Down Expand Up @@ -764,7 +764,7 @@ static int axp288_fuel_gauge_probe(struct platform_device *pdev)
};
unsigned int val;

if (dmi_check_system(axp288_fuel_gauge_blacklist))
if (dmi_check_system(axp288_no_battery_list))
return -ENODEV;

/*
Expand Down

0 comments on commit 0973e96

Please sign in to comment.