ACPI: battery: include linux/power_supply.h
authorBarnabás Pőcze <pobrn@protonmail.com>
Fri, 25 Sep 2020 09:37:47 +0000 (09:37 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 25 Sep 2020 16:31:19 +0000 (18:31 +0200)
acpi/battery.h uses 'struct power_supply *', but fails to
include/create any declaration of the type. Include linux/
power_supply.h to fix that.

Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
[ rjw: Subject edit ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/acpi/battery.h

index 5d8f5d910c82ae6bd072d51b04bb0583789f12e8..b8d56b702c7a8a2b594c75593cb1c35c71b44992 100644 (file)
@@ -2,6 +2,8 @@
 #ifndef __ACPI_BATTERY_H
 #define __ACPI_BATTERY_H
 
+#include <linux/power_supply.h>
+
 #define ACPI_BATTERY_CLASS "battery"
 
 #define ACPI_BATTERY_NOTIFY_STATUS     0x80