projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba4f184
)
ACPI: battery: include linux/power_supply.h
author
Barnabás Pőcze
<pobrn@protonmail.com>
Fri, 25 Sep 2020 09:37:47 +0000
(09:37 +0000)
committer
Rafael 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
patch
|
blob
|
history
diff --git
a/include/acpi/battery.h
b/include/acpi/battery.h
index 5d8f5d910c82ae6bd072d51b04bb0583789f12e8..b8d56b702c7a8a2b594c75593cb1c35c71b44992 100644
(file)
--- 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