Skip to contentSkip to conversation

thermal: bcm2835: move to the broadcom subdirectory

PATCH In review Rafał Miłecki 3 participants 3 messages Apr 17, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thermal: bcm2835: move to the broadcom subdirectory

From: Rafał Miłecki <[email protected]>

We already have 2 Broadcom drivers and at least 1 more is coming. This made us create broadcom subdirectory where bcm2835 should be moves now.

---
I'm resending this patch including linux-pm mailing list. Sorry for missing it previously.

---
 drivers/thermal/Kconfig                          | 8 --------
 drivers/thermal/Makefile                         | 1 -
 drivers/thermal/broadcom/Kconfig                 | 8 ++++++++
 drivers/thermal/broadcom/Makefile                | 1 +
 drivers/thermal/{ => broadcom}/bcm2835_thermal.c | 0
 5 files changed, 9 insertions(+), 9 deletions(-)
 rename drivers/thermal/{ => broadcom}/bcm2835_thermal.c (100%)
drivers/thermal/Kconfig +0 -8
index 6699843918fa..f786ae433032 100644
@@ -468,12 +468,4 @@ config ZX2967_THERMAL
 	  the primitive temperature sensor embedded in zx2967 SoCs.
 	  This sensor generates the real time die temperature.
 
-config BCM2835_THERMAL
-	tristate "Thermal sensors on bcm2835 SoC"
-	depends on ARCH_BCM2835 || COMPILE_TEST
-	depends on HAS_IOMEM
-	depends on THERMAL_OF
-	help
-	  Support for thermal sensors on Broadcom bcm2835 SoCs.
-
 endif
drivers/thermal/Makefile +0 -1
index a1e9b8b4e897..e6834061da28 100644
@@ -60,4 +60,3 @@ obj-$(CONFIG_HISI_THERMAL)     += hisi_thermal.o
 obj-$(CONFIG_MTK_THERMAL)	+= mtk_thermal.o
 obj-$(CONFIG_GENERIC_ADC_THERMAL)	+= thermal-generic-adc.o
 obj-$(CONFIG_ZX2967_THERMAL)	+= zx2967_thermal.o
-obj-$(CONFIG_BCM2835_THERMAL)	+= bcm2835_thermal.o
drivers/thermal/broadcom/Kconfig +8 -0
index f0dea8a8e002..ab08af4654ef 100644
@@ -1,3 +1,11 @@
+config BCM2835_THERMAL
+	tristate "Thermal sensors on bcm2835 SoC"
+	depends on ARCH_BCM2835 || COMPILE_TEST
+	depends on HAS_IOMEM
+	depends on THERMAL_OF
+	help
+	  Support for thermal sensors on Broadcom bcm2835 SoCs.
+
 config BCM_NS_THERMAL
 	tristate "Northstar thermal driver"
 	depends on ARCH_BCM_IPROC || COMPILE_TEST
drivers/thermal/broadcom/Makefile +1 -0
index 059df9a0ed69..c6f62e4fd0ee 100644
@@ -1 +1,2 @@
+obj-$(CONFIG_BCM2835_THERMAL)		+= bcm2835_thermal.o
 obj-$(CONFIG_BCM_NS_THERMAL)		+= ns-thermal.o
drivers/thermal/broadcom/bcm2835_thermal.c renamed from drivers/thermal/bcm2835_thermal.c +0 -0
similarity index 100%
rename from drivers/thermal/bcm2835_thermal.c
rename to drivers/thermal/broadcom/bcm2835_thermal.c
Signature · 1 line
2.11.0
#1 lore raw
Quoted 10 lines · Rafał Miłecki

From: Rafał Miłecki <[email protected]>

We already have 2 Broadcom drivers and at least 1 more is coming. This made us create broadcom subdirectory where bcm2835 should be moves now.

---
I'm resending this patch including linux-pm mailing list. Sorry for missing it previously.
---

What tree is this against?

Quoted 30 lines
 drivers/thermal/Kconfig                          | 8 --------
 drivers/thermal/Makefile                         | 1 -
 drivers/thermal/broadcom/Kconfig                 | 8 ++++++++
 drivers/thermal/broadcom/Makefile                | 1 +
 drivers/thermal/{ => broadcom}/bcm2835_thermal.c | 0
 5 files changed, 9 insertions(+), 9 deletions(-)
 rename drivers/thermal/{ => broadcom}/bcm2835_thermal.c (100%)
drivers/thermal/Kconfig +0 -8
index 6699843918fa..f786ae433032 100644
@@ -468,12 +468,4 @@ config ZX2967_THERMAL
 	  the primitive temperature sensor embedded in zx2967 SoCs.
 	  This sensor generates the real time die temperature.
 
-config BCM2835_THERMAL
-	tristate "Thermal sensors on bcm2835 SoC"
-	depends on ARCH_BCM2835 || COMPILE_TEST
-	depends on HAS_IOMEM
-	depends on THERMAL_OF
-	help
-	  Support for thermal sensors on Broadcom bcm2835 SoCs.
-
 endif
drivers/thermal/Makefile +0 -0
index a1e9b8b4e897..e6834061da28 100644

drivers/thermal/Makefile obj-$(CONFIG_HISI_THERMAL) += hisi_thermal.o · line 63

Quoted 4 lines
drivers/thermal/Makefile +0 -1
@@ -60,4 +60,3 @@ obj-$(CONFIG_HISI_THERMAL)     += hisi_thermal.o
 obj-$(CONFIG_MTK_THERMAL)	+= mtk_thermal.o
 obj-$(CONFIG_GENERIC_ADC_THERMAL)	+= thermal-generic-adc.o
 obj-$(CONFIG_ZX2967_THERMAL)	+= zx2967_thermal.o
-obj-$(CONFIG_BCM2835_THERMAL)	+= bcm2835_thermal.o

How are we recursing into drivers/thermal/broadcom?

drivers/thermal/broadcom/Kconfig line 8

Quoted 13 lines
drivers/thermal/broadcom/Kconfig +8 -0
index f0dea8a8e002..ab08af4654ef 100644
@@ -1,3 +1,11 @@
+config BCM2835_THERMAL
+	tristate "Thermal sensors on bcm2835 SoC"
+	depends on ARCH_BCM2835 || COMPILE_TEST
+	depends on HAS_IOMEM
+	depends on THERMAL_OF
+	help
+	  Support for thermal sensors on Broadcom bcm2835 SoCs.
+

Don't we also need a:

source drivers/thermal/broadcom/Kconfig to be placed within drivers/thermal/Kconfig?

Quoted 15 lines
drivers/thermal/broadcom/Kconfig +0 -0
 config BCM_NS_THERMAL
 	tristate "Northstar thermal driver"
 	depends on ARCH_BCM_IPROC || COMPILE_TEST
drivers/thermal/broadcom/Makefile +1 -0
index 059df9a0ed69..c6f62e4fd0ee 100644
@@ -1 +1,2 @@
+obj-$(CONFIG_BCM2835_THERMAL)		+= bcm2835_thermal.o
 obj-$(CONFIG_BCM_NS_THERMAL)		+= ns-thermal.o
drivers/thermal/broadcom/bcm2835_thermal.c renamed from drivers/thermal/bcm2835_thermal.c +0 -0
similarity index 100%
rename from drivers/thermal/bcm2835_thermal.c
rename to drivers/thermal/broadcom/bcm2835_thermal.c
Signature · 1 line
Florian
maintainer Acked-by
#2 lore raw
Quoted 6 lines · Florian Fainelli
Quoted 5 lines · Rafał Miłecki

From: Rafał Miłecki <[email protected]>

We already have 2 Broadcom drivers and at least 1 more is coming. This made us create broadcom subdirectory where bcm2835 should be moves now.

Quoted 7 lines
Quoted 5 lines

---
I'm resending this patch including linux-pm mailing list. Sorry for missing it previously.
---

What tree is this against?

Found it here:

https://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal.git/log/?h=next

with that:

Signature · 1 line
Florian