summaryrefslogtreecommitdiff
path: root/drivers/hwmon/w83773g.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-07-14 11:46:04 -0600
committerGuenter Roeck <linux@roeck-us.net>2023-08-21 06:04:29 -0700
commit39f034386fc023780a505ed02ca40e57e4031e23 (patch)
tree176226fc029405c0df362797a85c14ec591449e6 /drivers/hwmon/w83773g.c
parent6698cbd624bf3ad4822453b0c3941bf0220f283f (diff)
hwmon: Explicitly include correct DT includes
The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it as merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also include platform_device.h and of.h. As a result, there's a pretty much random mix of those include files used throughout the tree. In order to detangle these headers and replace the implicit includes with struct declarations, users need to explicitly include the correct includes. Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20230714174607.4057185-1-robh@kernel.org Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/w83773g.c')
-rw-r--r--drivers/hwmon/w83773g.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/w83773g.c b/drivers/hwmon/w83773g.c
index 7f3615f5587c..045eea8378c2 100644
--- a/drivers/hwmon/w83773g.c
+++ b/drivers/hwmon/w83773g.c
@@ -12,7 +12,7 @@
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/err.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
#include <linux/regmap.h>
/* W83773 has 3 channels */