aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2013-03-11 05:17:06 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-03-24 19:05:48 -0400
commitefd941f108569a9cfd1c14f20093a4ac745dec2d (patch)
treeb87f833c6172df00c8d8aeb8105927c7f419e4ef /drivers/acpi
parent2d5914ccf9b359d40de27eefd1761ddc93785376 (diff)
ACPI: suppress compiler warning in battery.c
This patch fixes following compiler warning when build via make W=1: drivers/acpi/battery.c:149:52: warning: no previous prototype for ‘acpi_battery_present’ [-Wmissing-prototypes] Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
index c5cd5b5513e6..0cc384b72943 100644
--- a/drivers/acpi/battery.c
+++ b/drivers/acpi/battery.c
@@ -146,7 +146,7 @@ struct acpi_battery {
146 146
147#define to_acpi_battery(x) container_of(x, struct acpi_battery, bat) 147#define to_acpi_battery(x) container_of(x, struct acpi_battery, bat)
148 148
149inline int acpi_battery_present(struct acpi_battery *battery) 149static inline int acpi_battery_present(struct acpi_battery *battery)
150{ 150{
151 return battery->device->status.battery_present; 151 return battery->device->status.battery_present;
152} 152}