]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / battery: minor tweaks to acpi_battery_units()
authorMathias Krause <minipli@googlemail.com>
Sat, 13 Jun 2015 12:26:54 +0000 (14:26 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 15 Jun 2015 12:23:06 +0000 (14:23 +0200)
commitbbb4ed8c4a83e6c79232a4d08214b7e9566805ed
tree0f782e17cd4292eb99333a8f3d3ca3644ed7e266
parent0a984bed749744cc66ef03055bccbf6252a42da2
ACPI / battery: minor tweaks to acpi_battery_units()

Make the acpi_battery_units() function take a const argument and return
a const char*, too. Also make it static. It probably doesn't matter, as
gcc will be clever enough to optimize and inline the code even without
these hints. However, we also get rid of a #ifdef block by moving the
function closer to its usage location, so it's at least a small gain in
code readability.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/battery.c