From: Armin Wolf <W_Armin@gmx.de>
To: jdelvare@suse.com, linux@roeck-us.net
Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] hwmon: Use struct definitions from header files
Date: Thu, 25 Aug 2022 23:43:41 +0200 [thread overview]
Message-ID: <20220825214341.2743-3-W_Armin@gmx.de> (raw)
In-Reply-To: <20220825214341.2743-1-W_Armin@gmx.de>
The structs attribute_group and device are provided
by linux/sysfs.h and linux/device.h.
Use those definitions.
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
---
include/linux/hwmon.h | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/include/linux/hwmon.h b/include/linux/hwmon.h
index 281387ee03bc..e8acc35af12d 100644
--- a/include/linux/hwmon.h
+++ b/include/linux/hwmon.h
@@ -13,12 +13,11 @@
#define _HWMON_H_
#include <linux/bitops.h>
+#include <linux/device.h>
#include <linux/err.h>
#include <linux/errno.h>
#include <linux/kconfig.h>
-
-struct device;
-struct attribute_group;
+#include <linux/sysfs.h>
enum hwmon_sensor_types {
hwmon_chip,
--
2.30.2
next prev parent reply other threads:[~2022-08-25 21:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-25 21:43 [PATCH 0/2] hwmon: Add include stubs Armin Wolf
2022-08-25 21:43 ` [PATCH 1/2] " Armin Wolf
2022-08-26 12:47 ` Guenter Roeck
2022-08-26 18:07 ` Armin Wolf
2022-08-25 21:43 ` Armin Wolf [this message]
2022-08-26 12:23 ` [PATCH 2/2] hwmon: Use struct definitions from header files Guenter Roeck
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=20220825214341.2743-3-W_Armin@gmx.de \
--to=w_armin@gmx.de \
--cc=jdelvare@suse.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.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