diff options
author | Barnabás Pőcze <pobrn@protonmail.com> | 2020-09-25 09:37:47 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-09-25 18:31:19 +0200 |
commit | 7d1eb2d8f05014a4970df4aeed8c096bfb5e1dcd (patch) | |
tree | 90ec97cecc47cef70bdc0f0c3e74c734fca19623 /include/acpi | |
parent | ba4f184e126b751d1bffad5897f263108befc780 (diff) |
ACPI: battery: include linux/power_supply.h
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>
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/battery.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/acpi/battery.h b/include/acpi/battery.h index 5d8f5d910c82..b8d56b702c7a 100644 --- a/include/acpi/battery.h +++ b/include/acpi/battery.h @@ -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 |