summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/ultra45_env.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-07-14 19:46:04 +0200
committerGuenter Roeck <linux@roeck-us.net>2023-08-21 15:04:29 +0200
commit39f034386fc023780a505ed02ca40e57e4031e23 (patch)
tree176226fc029405c0df362797a85c14ec591449e6 /drivers/hwmon/ultra45_env.c
parenthwmon: (lan966x) Use the devm_clk_get_enabled() helper function (diff)
downloadlinux-39f034386fc023780a505ed02ca40e57e4031e23.tar.xz
linux-39f034386fc023780a505ed02ca40e57e4031e23.zip
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/ultra45_env.c')
-rw-r--r--drivers/hwmon/ultra45_env.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hwmon/ultra45_env.c b/drivers/hwmon/ultra45_env.c
index b23cff2e3d5d..3b580f229887 100644
--- a/drivers/hwmon/ultra45_env.c
+++ b/drivers/hwmon/ultra45_env.c
@@ -9,7 +9,8 @@
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>