Skip to content

Commit 7d1eb2d

Browse files
pobrnrafaeljw
authored andcommitted
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>
1 parent ba4f184 commit 7d1eb2d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/acpi/battery.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#ifndef __ACPI_BATTERY_H
33
#define __ACPI_BATTERY_H
44

5+
#include <linux/power_supply.h>
6+
57
#define ACPI_BATTERY_CLASS "battery"
68

79
#define ACPI_BATTERY_NOTIFY_STATUS 0x80

0 commit comments

Comments
 (0)