diff mbox series

[v2,1/1] thermal: ti-soc-thermal: Remove duplicated header file inclusion

Message ID 20210406091912.2583-2-thunder.leizhen@huawei.com
State New
Headers show
Series thermal: ti-soc-thermal: Remove duplicated header file inclusion | expand

Commit Message

Zhen Lei April 6, 2021, 9:19 a.m. UTC
Delete one of the header files <linux/of_device.h> that are included
twice, all included header files are then rearranged alphabetically.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>

---
 drivers/thermal/ti-soc-thermal/ti-bandgap.c | 35 ++++++++++++++---------------
 1 file changed, 17 insertions(+), 18 deletions(-)

-- 
1.8.3

Comments

Keerthy April 6, 2021, 10:38 a.m. UTC | #1
On 4/6/2021 2:49 PM, Zhen Lei wrote:
> Delete one of the header files <linux/of_device.h> that are included

> twice, all included header files are then rearranged alphabetically.


Reviewed-by: Keerthy <j-keerthy@ti.com>


> 

> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>

> ---

>   drivers/thermal/ti-soc-thermal/ti-bandgap.c | 35 ++++++++++++++---------------

>   1 file changed, 17 insertions(+), 18 deletions(-)

> 

> diff --git a/drivers/thermal/ti-soc-thermal/ti-bandgap.c b/drivers/thermal/ti-soc-thermal/ti-bandgap.c

> index 8a3646e26ddd208..5e7e80b4a8171c4 100644

> --- a/drivers/thermal/ti-soc-thermal/ti-bandgap.c

> +++ b/drivers/thermal/ti-soc-thermal/ti-bandgap.c

> @@ -9,30 +9,29 @@

>    *   Eduardo Valentin <eduardo.valentin@ti.com>

>    */

>   

> -#include <linux/module.h>

> +#include <linux/clk.h>

> +#include <linux/cpu_pm.h>

> +#include <linux/device.h>

> +#include <linux/err.h>

>   #include <linux/export.h>

> +#include <linux/gpio/consumer.h>

>   #include <linux/init.h>

> -#include <linux/kernel.h>

>   #include <linux/interrupt.h>

> -#include <linux/clk.h>

> -#include <linux/gpio/consumer.h>

> -#include <linux/platform_device.h>

> -#include <linux/err.h>

> -#include <linux/types.h>

> -#include <linux/spinlock.h>

> -#include <linux/sys_soc.h>

> -#include <linux/reboot.h>

> -#include <linux/of_device.h>

> -#include <linux/of_platform.h>

> -#include <linux/of_irq.h>

>   #include <linux/io.h>

>   #include <linux/iopoll.h>

> -#include <linux/cpu_pm.h>

> -#include <linux/device.h>

> -#include <linux/pm_runtime.h>

> -#include <linux/pm.h>

> -#include <linux/of.h>

> +#include <linux/kernel.h>

> +#include <linux/module.h>

>   #include <linux/of_device.h>

> +#include <linux/of.h>

> +#include <linux/of_irq.h>

> +#include <linux/of_platform.h>

> +#include <linux/platform_device.h>

> +#include <linux/pm.h>

> +#include <linux/pm_runtime.h>

> +#include <linux/reboot.h>

> +#include <linux/spinlock.h>

> +#include <linux/sys_soc.h>

> +#include <linux/types.h>

>   

>   #include "ti-bandgap.h"

>   

>
Daniel Lezcano April 20, 2021, 5:06 p.m. UTC | #2
On 06/04/2021 11:19, Zhen Lei wrote:
> Delete one of the header files <linux/of_device.h> that are included

> twice, all included header files are then rearranged alphabetically.


The duplicate header file inclusion has been already fixed in a previous
patch.

Applied this patch by massaging the changelog accordingly and fixing the
conflict.

Thanks

  -- Daniel

-- 
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
diff mbox series

Patch

diff --git a/drivers/thermal/ti-soc-thermal/ti-bandgap.c b/drivers/thermal/ti-soc-thermal/ti-bandgap.c
index 8a3646e26ddd208..5e7e80b4a8171c4 100644
--- a/drivers/thermal/ti-soc-thermal/ti-bandgap.c
+++ b/drivers/thermal/ti-soc-thermal/ti-bandgap.c
@@ -9,30 +9,29 @@ 
  *   Eduardo Valentin <eduardo.valentin@ti.com>
  */
 
-#include <linux/module.h>
+#include <linux/clk.h>
+#include <linux/cpu_pm.h>
+#include <linux/device.h>
+#include <linux/err.h>
 #include <linux/export.h>
+#include <linux/gpio/consumer.h>
 #include <linux/init.h>
-#include <linux/kernel.h>
 #include <linux/interrupt.h>
-#include <linux/clk.h>
-#include <linux/gpio/consumer.h>
-#include <linux/platform_device.h>
-#include <linux/err.h>
-#include <linux/types.h>
-#include <linux/spinlock.h>
-#include <linux/sys_soc.h>
-#include <linux/reboot.h>
-#include <linux/of_device.h>
-#include <linux/of_platform.h>
-#include <linux/of_irq.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
-#include <linux/cpu_pm.h>
-#include <linux/device.h>
-#include <linux/pm_runtime.h>
-#include <linux/pm.h>
-#include <linux/of.h>
+#include <linux/kernel.h>
+#include <linux/module.h>
 #include <linux/of_device.h>
+#include <linux/of.h>
+#include <linux/of_irq.h>
+#include <linux/of_platform.h>
+#include <linux/platform_device.h>
+#include <linux/pm.h>
+#include <linux/pm_runtime.h>
+#include <linux/reboot.h>
+#include <linux/spinlock.h>
+#include <linux/sys_soc.h>
+#include <linux/types.h>
 
 #include "ti-bandgap.h"