diff options
author | Mathias Krause <minipli@googlemail.com> | 2015-06-13 14:26:54 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-06-15 14:23:06 +0200 |
commit | 27059b9132880f4211c41dfbf7665671cbf1ac91 (patch) | |
tree | 0f782e17cd4292eb99333a8f3d3ca3644ed7e266 /sound/soc/soc-dapm.c | |
parent | ACPI / battery: constify the offset tables (diff) | |
download | linux-27059b9132880f4211c41dfbf7665671cbf1ac91.tar.xz linux-27059b9132880f4211c41dfbf7665671cbf1ac91.zip |
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>
Diffstat (limited to 'sound/soc/soc-dapm.c')
0 files changed, 0 insertions, 0 deletions