Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

thermal: 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>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Rob Herring and committed by
Rafael J. Wysocki
f6a756e8 3f9ce024

+15 -26
-2
drivers/thermal/amlogic_thermal.c
··· 22 22 #include <linux/mfd/syscon.h> 23 23 #include <linux/module.h> 24 24 #include <linux/of.h> 25 - #include <linux/of_address.h> 26 - #include <linux/of_device.h> 27 25 #include <linux/platform_device.h> 28 26 #include <linux/regmap.h> 29 27 #include <linux/thermal.h>
+1 -1
drivers/thermal/broadcom/bcm2711_thermal.c
··· 15 15 #include <linux/kernel.h> 16 16 #include <linux/mfd/syscon.h> 17 17 #include <linux/module.h> 18 + #include <linux/of.h> 18 19 #include <linux/platform_device.h> 19 - #include <linux/of_device.h> 20 20 #include <linux/regmap.h> 21 21 #include <linux/thermal.h> 22 22
+1 -1
drivers/thermal/broadcom/brcmstb_thermal.c
··· 17 17 #include <linux/interrupt.h> 18 18 #include <linux/kernel.h> 19 19 #include <linux/module.h> 20 + #include <linux/of.h> 20 21 #include <linux/platform_device.h> 21 - #include <linux/of_device.h> 22 22 #include <linux/thermal.h> 23 23 24 24 #define AVS_TMON_STATUS 0x00
+1 -1
drivers/thermal/hisi_thermal.c
··· 13 13 #include <linux/delay.h> 14 14 #include <linux/interrupt.h> 15 15 #include <linux/module.h> 16 + #include <linux/of.h> 16 17 #include <linux/platform_device.h> 17 18 #include <linux/io.h> 18 - #include <linux/of_device.h> 19 19 #include <linux/thermal.h> 20 20 21 21 #define HI6220_TEMP0_LAG (0x0)
-1
drivers/thermal/imx8mm_thermal.c
··· 12 12 #include <linux/module.h> 13 13 #include <linux/nvmem-consumer.h> 14 14 #include <linux/of.h> 15 - #include <linux/of_device.h> 16 15 #include <linux/platform_device.h> 17 16 #include <linux/slab.h> 18 17 #include <linux/thermal.h>
-1
drivers/thermal/imx_sc_thermal.c
··· 8 8 #include <linux/firmware/imx/sci.h> 9 9 #include <linux/module.h> 10 10 #include <linux/of.h> 11 - #include <linux/of_device.h> 12 11 #include <linux/platform_device.h> 13 12 #include <linux/slab.h> 14 13 #include <linux/thermal.h>
+1 -1
drivers/thermal/imx_thermal.c
··· 11 11 #include <linux/mfd/syscon.h> 12 12 #include <linux/module.h> 13 13 #include <linux/of.h> 14 - #include <linux/of_device.h> 14 + #include <linux/platform_device.h> 15 15 #include <linux/regmap.h> 16 16 #include <linux/thermal.h> 17 17 #include <linux/nvmem-consumer.h>
+1 -1
drivers/thermal/k3_bandgap.c
··· 11 11 #include <linux/kernel.h> 12 12 #include <linux/module.h> 13 13 #include <linux/of.h> 14 - #include <linux/of_platform.h> 14 + #include <linux/platform_device.h> 15 15 #include <linux/pm_runtime.h> 16 16 #include <linux/thermal.h> 17 17 #include <linux/types.h>
+1 -1
drivers/thermal/k3_j72xx_bandgap.c
··· 10 10 #include <linux/module.h> 11 11 #include <linux/init.h> 12 12 #include <linux/kernel.h> 13 + #include <linux/platform_device.h> 13 14 #include <linux/pm_runtime.h> 14 15 #include <linux/err.h> 15 16 #include <linux/types.h> 16 - #include <linux/of_platform.h> 17 17 #include <linux/io.h> 18 18 #include <linux/thermal.h> 19 19 #include <linux/of.h>
-1
drivers/thermal/mediatek/auxadc_thermal.c
··· 15 15 #include <linux/nvmem-consumer.h> 16 16 #include <linux/of.h> 17 17 #include <linux/of_address.h> 18 - #include <linux/of_device.h> 19 18 #include <linux/platform_device.h> 20 19 #include <linux/slab.h> 21 20 #include <linux/io.h>
+1 -1
drivers/thermal/mediatek/lvts_thermal.c
··· 13 13 #include <linux/iopoll.h> 14 14 #include <linux/kernel.h> 15 15 #include <linux/nvmem-consumer.h> 16 - #include <linux/of_device.h> 16 + #include <linux/of.h> 17 17 #include <linux/platform_device.h> 18 18 #include <linux/reset.h> 19 19 #include <linux/thermal.h>
-1
drivers/thermal/qcom/qcom-spmi-adc-tm5.c
··· 14 14 #include <linux/interrupt.h> 15 15 #include <linux/module.h> 16 16 #include <linux/of.h> 17 - #include <linux/of_device.h> 18 17 #include <linux/platform_device.h> 19 18 #include <linux/regmap.h> 20 19 #include <linux/thermal.h>
-1
drivers/thermal/qcom/qcom-spmi-temp-alarm.c
··· 10 10 #include <linux/interrupt.h> 11 11 #include <linux/module.h> 12 12 #include <linux/of.h> 13 - #include <linux/of_device.h> 14 13 #include <linux/platform_device.h> 15 14 #include <linux/regmap.h> 16 15 #include <linux/thermal.h>
+1 -1
drivers/thermal/rcar_gen3_thermal.c
··· 11 11 #include <linux/interrupt.h> 12 12 #include <linux/io.h> 13 13 #include <linux/module.h> 14 - #include <linux/of_device.h> 14 + #include <linux/of.h> 15 15 #include <linux/platform_device.h> 16 16 #include <linux/pm_runtime.h> 17 17 #include <linux/thermal.h>
+1 -1
drivers/thermal/rcar_thermal.c
··· 11 11 #include <linux/interrupt.h> 12 12 #include <linux/io.h> 13 13 #include <linux/module.h> 14 - #include <linux/of_device.h> 14 + #include <linux/of.h> 15 15 #include <linux/platform_device.h> 16 16 #include <linux/pm_runtime.h> 17 17 #include <linux/reboot.h>
+1 -1
drivers/thermal/rzg2l_thermal.c
··· 9 9 #include <linux/io.h> 10 10 #include <linux/iopoll.h> 11 11 #include <linux/math.h> 12 + #include <linux/mod_devicetable.h> 12 13 #include <linux/module.h> 13 - #include <linux/of_device.h> 14 14 #include <linux/platform_device.h> 15 15 #include <linux/pm_runtime.h> 16 16 #include <linux/reset.h>
+1 -1
drivers/thermal/samsung/exynos_tmu.c
··· 15 15 #include <linux/io.h> 16 16 #include <linux/interrupt.h> 17 17 #include <linux/module.h> 18 - #include <linux/of_device.h> 18 + #include <linux/of.h> 19 19 #include <linux/of_address.h> 20 20 #include <linux/of_irq.h> 21 21 #include <linux/platform_device.h>
+1 -1
drivers/thermal/sprd_thermal.c
··· 6 6 #include <linux/iopoll.h> 7 7 #include <linux/module.h> 8 8 #include <linux/nvmem-consumer.h> 9 - #include <linux/of_device.h> 9 + #include <linux/of.h> 10 10 #include <linux/platform_device.h> 11 11 #include <linux/slab.h> 12 12 #include <linux/thermal.h>
-2
drivers/thermal/st/stm_thermal.c
··· 14 14 #include <linux/iopoll.h> 15 15 #include <linux/module.h> 16 16 #include <linux/of.h> 17 - #include <linux/of_address.h> 18 - #include <linux/of_device.h> 19 17 #include <linux/platform_device.h> 20 18 #include <linux/thermal.h> 21 19
+1 -1
drivers/thermal/sun8i_thermal.c
··· 14 14 #include <linux/interrupt.h> 15 15 #include <linux/module.h> 16 16 #include <linux/nvmem-consumer.h> 17 - #include <linux/of_device.h> 17 + #include <linux/of.h> 18 18 #include <linux/platform_device.h> 19 19 #include <linux/regmap.h> 20 20 #include <linux/reset.h>
+1 -1
drivers/thermal/tegra/tegra30-tsensor.c
··· 18 18 #include <linux/iopoll.h> 19 19 #include <linux/math.h> 20 20 #include <linux/module.h> 21 - #include <linux/of_device.h> 21 + #include <linux/of.h> 22 22 #include <linux/platform_device.h> 23 23 #include <linux/pm.h> 24 24 #include <linux/reset.h>
+1 -2
drivers/thermal/thermal_of.c
··· 10 10 11 11 #include <linux/err.h> 12 12 #include <linux/export.h> 13 - #include <linux/of_device.h> 14 - #include <linux/of_platform.h> 13 + #include <linux/of.h> 15 14 #include <linux/slab.h> 16 15 #include <linux/thermal.h> 17 16 #include <linux/types.h>
-1
drivers/thermal/uniphier_thermal.c
··· 12 12 #include <linux/mfd/syscon.h> 13 13 #include <linux/module.h> 14 14 #include <linux/of.h> 15 - #include <linux/of_device.h> 16 15 #include <linux/platform_device.h> 17 16 #include <linux/regmap.h> 18 17 #include <linux/thermal.h>