Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Barnabás Pőcze and committed by
Rafael J. Wysocki
7d1eb2d8 ba4f184e

+2
+2
include/acpi/battery.h
··· 2 2 #ifndef __ACPI_BATTERY_H 3 3 #define __ACPI_BATTERY_H 4 4 5 + #include <linux/power_supply.h> 6 + 5 7 #define ACPI_BATTERY_CLASS "battery" 6 8 7 9 #define ACPI_BATTERY_NOTIFY_STATUS 0x80