Skip to content

Commit f6a756e

Browse files
robherringrafaeljw
authored andcommitted
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 <[email protected]> Reviewed-by: Alim Akhtar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 3f9ce02 commit f6a756e

23 files changed

+15
-26
lines changed

drivers/thermal/amlogic_thermal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
#include <linux/mfd/syscon.h>
2323
#include <linux/module.h>
2424
#include <linux/of.h>
25-
#include <linux/of_address.h>
26-
#include <linux/of_device.h>
2725
#include <linux/platform_device.h>
2826
#include <linux/regmap.h>
2927
#include <linux/thermal.h>

drivers/thermal/broadcom/bcm2711_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
#include <linux/kernel.h>
1616
#include <linux/mfd/syscon.h>
1717
#include <linux/module.h>
18+
#include <linux/of.h>
1819
#include <linux/platform_device.h>
19-
#include <linux/of_device.h>
2020
#include <linux/regmap.h>
2121
#include <linux/thermal.h>
2222

drivers/thermal/broadcom/brcmstb_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#include <linux/interrupt.h>
1818
#include <linux/kernel.h>
1919
#include <linux/module.h>
20+
#include <linux/of.h>
2021
#include <linux/platform_device.h>
21-
#include <linux/of_device.h>
2222
#include <linux/thermal.h>
2323

2424
#define AVS_TMON_STATUS 0x00

drivers/thermal/hisi_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
#include <linux/delay.h>
1414
#include <linux/interrupt.h>
1515
#include <linux/module.h>
16+
#include <linux/of.h>
1617
#include <linux/platform_device.h>
1718
#include <linux/io.h>
18-
#include <linux/of_device.h>
1919
#include <linux/thermal.h>
2020

2121
#define HI6220_TEMP0_LAG (0x0)

drivers/thermal/imx8mm_thermal.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include <linux/module.h>
1313
#include <linux/nvmem-consumer.h>
1414
#include <linux/of.h>
15-
#include <linux/of_device.h>
1615
#include <linux/platform_device.h>
1716
#include <linux/slab.h>
1817
#include <linux/thermal.h>

drivers/thermal/imx_sc_thermal.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include <linux/firmware/imx/sci.h>
99
#include <linux/module.h>
1010
#include <linux/of.h>
11-
#include <linux/of_device.h>
1211
#include <linux/platform_device.h>
1312
#include <linux/slab.h>
1413
#include <linux/thermal.h>

drivers/thermal/imx_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <linux/mfd/syscon.h>
1212
#include <linux/module.h>
1313
#include <linux/of.h>
14-
#include <linux/of_device.h>
14+
#include <linux/platform_device.h>
1515
#include <linux/regmap.h>
1616
#include <linux/thermal.h>
1717
#include <linux/nvmem-consumer.h>

drivers/thermal/k3_bandgap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <linux/kernel.h>
1212
#include <linux/module.h>
1313
#include <linux/of.h>
14-
#include <linux/of_platform.h>
14+
#include <linux/platform_device.h>
1515
#include <linux/pm_runtime.h>
1616
#include <linux/thermal.h>
1717
#include <linux/types.h>

drivers/thermal/k3_j72xx_bandgap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
#include <linux/module.h>
1111
#include <linux/init.h>
1212
#include <linux/kernel.h>
13+
#include <linux/platform_device.h>
1314
#include <linux/pm_runtime.h>
1415
#include <linux/err.h>
1516
#include <linux/types.h>
16-
#include <linux/of_platform.h>
1717
#include <linux/io.h>
1818
#include <linux/thermal.h>
1919
#include <linux/of.h>

drivers/thermal/mediatek/auxadc_thermal.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include <linux/nvmem-consumer.h>
1616
#include <linux/of.h>
1717
#include <linux/of_address.h>
18-
#include <linux/of_device.h>
1918
#include <linux/platform_device.h>
2019
#include <linux/slab.h>
2120
#include <linux/io.h>

0 commit comments

Comments
 (0)