Commit 7b78622d authored by Lan Tianyu's avatar Lan Tianyu Committed by Len Brown

ACPI / Battery: Rename acpi_battery_quirks2 with acpi_battery_quirks

This patch is cosmetic only, and makes no functional change.
Since the acpi_battery_quirks has been deleted, rename
acpi_battery_quirks2 with acpi_battery_quirks to clean the code.
Signed-off-by: default avatarLan Tianyu <tianyu.lan@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 55003b21
...@@ -592,7 +592,7 @@ static void sysfs_remove_battery(struct acpi_battery *battery) ...@@ -592,7 +592,7 @@ static void sysfs_remove_battery(struct acpi_battery *battery)
* *
* Handle this correctly so that they won't break userspace. * Handle this correctly so that they won't break userspace.
*/ */
static void acpi_battery_quirks2(struct acpi_battery *battery) static void acpi_battery_quirks(struct acpi_battery *battery)
{ {
if (test_bit(ACPI_BATTERY_QUIRK_PERCENTAGE_CAPACITY, &battery->flags)) if (test_bit(ACPI_BATTERY_QUIRK_PERCENTAGE_CAPACITY, &battery->flags))
return ; return ;
...@@ -628,7 +628,7 @@ static int acpi_battery_update(struct acpi_battery *battery) ...@@ -628,7 +628,7 @@ static int acpi_battery_update(struct acpi_battery *battery)
if (!battery->bat.dev) if (!battery->bat.dev)
sysfs_add_battery(battery); sysfs_add_battery(battery);
result = acpi_battery_get_state(battery); result = acpi_battery_get_state(battery);
acpi_battery_quirks2(battery); acpi_battery_quirks(battery);
return result; return result;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment