From: "Barnabás Pőcze" <pobrn@protonmail.com>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>,
Len Brown <lenb@kernel.org>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>
Subject: [PATCH] ACPI: battery.h: include linux/power_supply.h
Date: Fri, 25 Sep 2020 09:37:47 +0000 [thread overview]
Message-ID: <6_vrlQfVYcRdLYK5BlS8E-_nRAXwCcIc-A2BAszjnowG_e4C-wMy6rdjbZZ0DzCJOMzHZfYUnhaHZfRIXFNE9Vp-23q9R2j305D26c3-EMA=@protonmail.com> (raw)
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
next reply other threads:[~2020-09-25 9:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-25 9:37 Barnabás Pőcze [this message]
2020-09-25 16:33 ` [PATCH] ACPI: battery.h: include linux/power_supply.h Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='6_vrlQfVYcRdLYK5BlS8E-_nRAXwCcIc-A2BAszjnowG_e4C-wMy6rdjbZZ0DzCJOMzHZfYUnhaHZfRIXFNE9Vp-23q9R2j305D26c3-EMA=@protonmail.com' \
--to=pobrn@protonmail.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=rjw@rjwysocki.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).