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)
commit27059b9132880f4211c41dfbf7665671cbf1ac91
tree0f782e17cd4292eb99333a8f3d3ca3644ed7e266
parenta465878455a06a8d52599be25459ba23cec3fd09
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
This page took 0.025037 seconds and 5 git commands to generate.