Skip to contentSkip to conversation

Makefile and Kconfig changes for twl4030-madc driver

PATCH In review Keerthy 2 participants 3 messages Sep 16, 2010 – Sep 20, 2010

Subsystems (4)
lore
Share & tools
lore

Keerthy

author
#0 lore raw

PATCH 2/2 Makefile and Kconfig changes for twl4030-madc driver

Makefile amd Kconfig Changes for twl4030-madc driver inclusion.

---
 arch/arm/mach-omap2/Kconfig |    4 ++++
 drivers/hwmon/Kconfig       |    4 ++++
 drivers/hwmon/Makefile      |    1 +
 3 files changed, 9 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/Kconfig +4 -0
index b48bacf..139137b 100644
@@ -170,6 +170,8 @@ config MACH_OMAP_3430SDP
 	depends on ARCH_OMAP3
 	default y
 	select OMAP_PACKAGE_CBB
+	select HWMON
+	select TWL4030_MADC
 
 config MACH_NOKIA_N800
        bool
@@ -206,6 +208,8 @@ config MACH_OMAP_ZOOM3
 	depends on ARCH_OMAP3
 	default y
 	select OMAP_PACKAGE_CBP
+	select HWMON
+	select TWL4030_MADC
 
 config MACH_CM_T35
 	bool "CompuLab CM-T35 module"
drivers/hwmon/Kconfig +4 -0
index 4d4d09b..47d66b9 100644
@@ -39,6 +39,10 @@ config HWMON_DEBUG_CHIP
 
 comment "Native drivers"
 
+config TWL4030_MADC
+	tristate
+	depends on HWMON && TWL4030_CORE
+
 config SENSORS_ABITUGURU
 	tristate "Abit uGuru (rev 1 & 2)"
 	depends on X86 && EXPERIMENTAL
drivers/hwmon/Makefile +1 -0
index e3c2484..24b3b17 100644
@@ -16,6 +16,7 @@ obj-$(CONFIG_SENSORS_W83792D)	+= w83792d.o
 obj-$(CONFIG_SENSORS_W83793)	+= w83793.o
 obj-$(CONFIG_SENSORS_W83781D)	+= w83781d.o
 obj-$(CONFIG_SENSORS_W83791D)	+= w83791d.o
+obj-$(CONFIG_TWL4030_MADC)      += twl4030-madc.o
 
 obj-$(CONFIG_SENSORS_ABITUGURU)	+= abituguru.o
 obj-$(CONFIG_SENSORS_ABITUGURU3)+= abituguru3.o
Signature · 1 line
1.7.0.4
#1 lore raw

drivers/hwmon/Kconfig

Quoted 32 lines · Keerthy

Makefile amd Kconfig Changes for twl4030-madc driver inclusion.

---
 arch/arm/mach-omap2/Kconfig |    4 ++++
 drivers/hwmon/Kconfig       |    4 ++++
 drivers/hwmon/Makefile      |    1 +
 3 files changed, 9 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/Kconfig +4 -0
index b48bacf..139137b 100644
@@ -170,6 +170,8 @@ config MACH_OMAP_3430SDP
 	depends on ARCH_OMAP3
 	default y
 	select OMAP_PACKAGE_CBB
+	select HWMON
+	select TWL4030_MADC
 
 config MACH_NOKIA_N800
        bool
@@ -206,6 +208,8 @@ config MACH_OMAP_ZOOM3
 	depends on ARCH_OMAP3
 	default y
 	select OMAP_PACKAGE_CBP
+	select HWMON
+	select TWL4030_MADC
 
 config MACH_CM_T35
 	bool "CompuLab CM-T35 module"
drivers/hwmon/Kconfig +0 -0

While it may make sense to have the above changes in a separate patch, the two files below should be part of patch #1, since they are logically part of the driver, and the driver itself won't make any sense in the code without being enabled in Kconfig/Makefile.

drivers/hwmon/Kconfig config HWMON_DEBUG_CHIP · line 42

Quoted 8 lines

index 4d4d09b..47d66b9 100644

drivers/hwmon/Kconfig +1 -0
@@ -39,6 +39,10 @@ config HWMON_DEBUG_CHIP
 
 comment "Native drivers"
 
+config TWL4030_MADC

Please use SENSORS_TWL4030_MADC or SENSORS_TWL4030 to be in line with all other definitions. Also, please retain alphabetical order.

drivers/hwmon/Kconfig config HWMON_DEBUG_CHIP · line 45

Quoted 3 lines
drivers/hwmon/Kconfig +3 -0
+	tristate
+	depends on HWMON && TWL4030_CORE
+

HWMON is really redundant here and should be removed.

drivers/hwmon/Makefile obj-$(CONFIG_SENSORS_W83792D) += w83792d.o · line 20

Quoted 13 lines
drivers/hwmon/Kconfig +0 -0
 config SENSORS_ABITUGURU
 	tristate "Abit uGuru (rev 1 & 2)"
 	depends on X86 && EXPERIMENTAL
drivers/hwmon/Makefile +1 -0
index e3c2484..24b3b17 100644
@@ -16,6 +16,7 @@ obj-$(CONFIG_SENSORS_W83792D)	+= w83792d.o
 obj-$(CONFIG_SENSORS_W83793)	+= w83793.o
 obj-$(CONFIG_SENSORS_W83781D)	+= w83781d.o
 obj-$(CONFIG_SENSORS_W83791D)	+= w83791d.o
+obj-$(CONFIG_TWL4030_MADC)      += twl4030-madc.o
 

Again, please retain alphabetical order. There is a reason for the other sensors to be out of order (see comments in the Makefile), but presumably that does not apply this one. If it does, please add comment/reason indicating that/if this is the case.

Quoted 10 lines
drivers/hwmon/Makefile +0 -0
 obj-$(CONFIG_SENSORS_ABITUGURU)	+= abituguru.o
 obj-$(CONFIG_SENSORS_ABITUGURU3)+= abituguru3.o
Signature · 7 lines
1.7.0.4


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

author
#2 lore raw
Quoted 41 lines

-----Original Message-----
From: Guenter Roeck [mailto:[email protected]]
Sent: Thursday, September 16, 2010 7:36 PM
To: J, KEERTHY
Cc: [email protected]; [email protected]; Krishnamoorthy, Balaji T
Subject: Re: [lm-sensors] [PATCH 2/2] Makefile and Kconfig changes for twl4030-madc driver

Quoted 29 lines · Keerthy

Makefile amd Kconfig Changes for twl4030-madc driver inclusion.

---
 arch/arm/mach-omap2/Kconfig |    4 ++++
 drivers/hwmon/Kconfig       |    4 ++++
 drivers/hwmon/Makefile      |    1 +
 3 files changed, 9 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/Kconfig +4 -0
index b48bacf..139137b 100644
@@ -170,6 +170,8 @@ config MACH_OMAP_3430SDP
 	depends on ARCH_OMAP3
 	default y
 	select OMAP_PACKAGE_CBB
+	select HWMON
+	select TWL4030_MADC
 
 config MACH_NOKIA_N800
        bool
@@ -206,6 +208,8 @@ config MACH_OMAP_ZOOM3
 	depends on ARCH_OMAP3
 	default y
 	select OMAP_PACKAGE_CBP
+	select HWMON
+	select TWL4030_MADC
 
Quoted 9 lines

drivers/hwmon/Kconfig

Quoted 3 lines
arch/arm/mach-omap2/Kconfig +0 -0
 config MACH_CM_T35
 	bool "CompuLab CM-T35 module"
drivers/hwmon/Kconfig +0 -0

While it may make sense to have the above changes in a separate patch, the two files below should be part of patch #1, since they are logically part of the driver, and the driver itself won't make any sense in the code without being enabled in Kconfig/Makefile.

I will club them into a single patch.

Quoted 12 lines

drivers/hwmon/Kconfig config HWMON_DEBUG_CHIP · line 42

Quoted 8 lines

index 4d4d09b..47d66b9 100644

drivers/hwmon/Kconfig +1 -0
@@ -39,6 +39,10 @@ config HWMON_DEBUG_CHIP
 
 comment "Native drivers"
 
+config TWL4030_MADC

Please use SENSORS_TWL4030_MADC or SENSORS_TWL4030 to be in line with all other definitions. Also, please retain alphabetical order.

Quoted 5 lines

drivers/hwmon/Kconfig config HWMON_DEBUG_CHIP · line 45

Quoted 3 lines
drivers/hwmon/Kconfig +3 -0
+	tristate
+	depends on HWMON && TWL4030_CORE
+

HWMON is really redundant here and should be removed.

I will remove it.

Quoted 12 lines
Quoted 12 lines
drivers/hwmon/Kconfig +0 -0
 config SENSORS_ABITUGURU
 	tristate "Abit uGuru (rev 1 & 2)"
 	depends on X86 && EXPERIMENTAL
drivers/hwmon/Makefile +1 -0
index e3c2484..24b3b17 100644
@@ -16,6 +16,7 @@ obj-$(CONFIG_SENSORS_W83792D)	+= w83792d.o
 obj-$(CONFIG_SENSORS_W83793)	+= w83793.o
 obj-$(CONFIG_SENSORS_W83781D)	+= w83781d.o
 obj-$(CONFIG_SENSORS_W83791D)	+= w83791d.o
+obj-$(CONFIG_TWL4030_MADC)      += twl4030-madc.o
Quoted 9 lines
Quoted 1 line

Again, please retain alphabetical order. There is a reason for the other sensors
to be out of order (see comments in the Makefile), but presumably that does
not apply this one. If it does, please add comment/reason indicating that/if
this is the case.

I will retain the alphabetical order

Quoted 10 lines
Quoted 10 lines

obj-$(CONFIG_SENSORS_ABITUGURU) += abituguru.o
obj-$(CONFIG_SENSORS_ABITUGURU3)+= abituguru3.o
--
1.7.0.4

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors