linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ACPI: battery.h: include linux/power_supply.h
@ 2020-09-25  9:37 Barnabás Pőcze
  2020-09-25 16:33 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Barnabás Pőcze @ 2020-09-25  9:37 UTC (permalink / raw)
  To: Rafael J. Wysocki, Len Brown, linux-acpi

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>
---
 include/acpi/battery.h | 2 ++
 1 file changed, 2 insertions(+)

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
--
2.28.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ACPI: battery.h: include linux/power_supply.h
  2020-09-25  9:37 [PATCH] ACPI: battery.h: include linux/power_supply.h Barnabás Pőcze
@ 2020-09-25 16:33 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2020-09-25 16:33 UTC (permalink / raw)
  To: Barnabás Pőcze; +Cc: Rafael J. Wysocki, Len Brown, linux-acpi

On Fri, Sep 25, 2020 at 11:38 AM Barnabás Pőcze <pobrn@protonmail.com> wrote:
>
> 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>
> ---
>  include/acpi/battery.h | 2 ++
>  1 file changed, 2 insertions(+)
>
> 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
> --

Applied as 5.10 material with minor subject edit, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-25 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-25  9:37 [PATCH] ACPI: battery.h: include linux/power_supply.h Barnabás Pőcze
2020-09-25 16:33 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).