Skip to contentSkip to conversation

thermal: ti-soc-thermal: Remove duplicated header file inclusion

PATCH Applied Zhen Lei 4 participants 5 messages Apr 6, 2021 – Apr 27, 2021

Subsystems (2)
lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

v2 cover thermal: ti-soc-thermal: Remove duplicated header file inclusion

v1 --> v2:
Arrange all included header files in alphabetical order.

Zhen Lei (1):
thermal: ti-soc-thermal: Remove duplicated header file inclusion

 drivers/thermal/ti-soc-thermal/ti-bandgap.c | 35 ++++++++++++++---------------
 1 file changed, 17 insertions(+), 18 deletions(-)
Signature · 1 line
1.8.3
author
#1 lore raw

PATCH v2 1/1 thermal: ti-soc-thermal: Remove duplicated header file inclusion

Delete one of the header files <linux/of_device.h> that are included twice, all included header files are then rearranged alphabetically.

---
 drivers/thermal/ti-soc-thermal/ti-bandgap.c | 35 ++++++++++++++---------------
 1 file changed, 17 insertions(+), 18 deletions(-)
drivers/thermal/ti-soc-thermal/ti-bandgap.c +17 -18
index 8a3646e26ddd208..5e7e80b4a8171c4 100644
@@ -9,30 +9,29 @@
  *   Eduardo Valentin <[email protected]>
  */
 
-#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"
 
Signature · 1 line
1.8.3
maintainer Reviewed-by on v2 1/1
#2 lore raw
Quoted 2 lines · Zhen Lei

Delete one of the header files <linux/of_device.h> that are included twice, all included header files are then rearranged alphabetically.

Quoted 59 lines
---
  drivers/thermal/ti-soc-thermal/ti-bandgap.c | 35 ++++++++++++++---------------
  1 file changed, 17 insertions(+), 18 deletions(-)
drivers/thermal/ti-soc-thermal/ti-bandgap.c +17 -18
index 8a3646e26ddd208..5e7e80b4a8171c4 100644
@@ -9,30 +9,29 @@
   *   Eduardo Valentin <[email protected]>
   */
 
-#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"
 
#3 lore raw
In reply to Zhen Lei
Quoted 2 lines · Zhen Lei

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

Signature · 5 lines
<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
merge bot Applied
#4 lore raw

[thermal: thermal/next] thermal/drivers/ti-soc-thermal/ti-bandgap: Rearrange all the included header files alphabetically

In reply to Zhen Lei
The following commit has been merged into the thermal/next branch of thermal:

The following commit has been merged into the thermal/next branch of thermal:

Commit-ID:     5a4a8235fee69b5a31cf1c56a9fa14b0d21a930c
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git//5a4a8235fee69b5a31cf1c56a9fa14b0d21a930c
Author:        Zhen Lei <[email protected]>
AuthorDate:    Tue, 06 Apr 2021 17:19:12 +08:00
Committer:     Daniel Lezcano <[email protected]>
CommitterDate: Tue, 20 Apr 2021 19:02:16 +02:00

thermal/drivers/ti-soc-thermal/ti-bandgap: Rearrange all the included header files alphabetically

For the sake of lisibility, reorder the header files alphabetically.

---
 drivers/thermal/ti-soc-thermal/ti-bandgap.c | 34 ++++++++++----------
 1 file changed, 17 insertions(+), 17 deletions(-)
drivers/thermal/ti-soc-thermal/ti-bandgap.c +17 -17
index d81af89..008fbed 100644
@@ -9,29 +9,29 @@
  *   Eduardo Valentin <[email protected]>
  */
 
-#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/kernel.h>
+#include <linux/module.h>
 #include <linux/of.h>
+#include <linux/of_device.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"