diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-02-23 16:32:55 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-02-27 17:09:20 +0100 |
commit | 514bcc5dfa69d64f7772cb6442721b9d1b83504d (patch) | |
tree | 0f0dce5d4370eecd982b1406337b8c983b12b0e5 /drivers/acpi/battery.c | |
parent | 91eea70e5e5ce12eb1c7cd922e561fab43e201bd (diff) |
ACPI: battery: make function __battery_hook_unregister() static
The function __battery_hook_unregister is local to the source and does
not need to be in global scope, so make it static.
Cleans up sparse warning:
drivers/acpi/battery.c:654:6: warning: symbol '__battery_hook_unregister'
was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/battery.c')
-rw-r--r-- | drivers/acpi/battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index cfdef4c1d097..b4580b2e8706 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c @@ -651,7 +651,7 @@ static LIST_HEAD(acpi_battery_list); static LIST_HEAD(battery_hook_list); static DEFINE_MUTEX(hook_mutex); -void __battery_hook_unregister(struct acpi_battery_hook *hook, int lock) +static void __battery_hook_unregister(struct acpi_battery_hook *hook, int lock) { struct acpi_battery *battery; /* |