From: Mathias Krause Date: Sat, 13 Jun 2015 12:26:54 +0000 (+0200) Subject: ACPI / battery: minor tweaks to acpi_battery_units() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~154^2~11^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27059b9132880f4211c41dfbf7665671cbf1ac91;p=pandora-kernel.git 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 Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed