* [PATCH] Blackfin: bf537: rename "CONFIG_ADT7410"
@ 2013-05-13 21:15 Paul Bolle
2013-05-14 8:14 ` [PATCH v2] Blackfin: bf537: rename "CONFIG_ADT7310" and friends Paul Bolle
0 siblings, 1 reply; 2+ messages in thread
From: Paul Bolle @ 2013-05-13 21:15 UTC (permalink / raw)
To: Mike Frysinger
Cc: Lars-Peter Clausen, Jonathan Cameron, uclinux-dist-devel, linux-kernel
In v3.10-rc1 the Analog Devices ADT7310/ADT7410 temperature sensor
driver was removed as an IIO driver. But it was apparently overlooked
to rename four references to CONFIG_ADT7410 to either
CONFIG_SENSORS_ADT7310 or CONFIG_SENSORS_ADT7410. Do so now. Use the
IS_ENABLED() macro, while we're at it.
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
---
0) Untested. The choice for SENSORS_ADT7310 and SENSORS_ADT7410 is just
educated guesswork.
1) It was commit cddc1424f39e7c04045a6431eaf13a003fb8335a ("staging:iio:
Remove adt7410 driver") that triggered this patch.
arch/blackfin/mach-bf537/boards/stamp.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index 1cbe46e..90d2ab1 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -701,7 +701,7 @@ static struct bfin5xx_spi_chip ad7816_spi_chip_info = {
};
#endif
-#if defined(CONFIG_ADT7410) || defined(CONFIG_ADT7410_MODULE)
+#if IS_ENABLED(CONFIG_SENSORS_ADT7310)
static unsigned long adt7310_platform_data[3] = {
/* INT bound temperature alarm event. line 1 */
IRQ_PG4, IRQF_TRIGGER_LOW,
@@ -1063,7 +1063,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
},
#endif
-#if defined(CONFIG_ADT7410) || defined(CONFIG_ADT7410_MODULE)
+#if IS_ENABLED(CONFIG_SENSORS_ADT7310)
{
.modalias = "adt7310",
.max_speed_hz = 1000000,
@@ -2161,7 +2161,7 @@ static struct platform_device ad5398_userspace_consumer_device = {
#endif
#endif
-#if defined(CONFIG_ADT7410) || defined(CONFIG_ADT7410_MODULE)
+#if IS_ENABLED(CONFIG_SENSORS_ADT7410)
/* INT bound temperature alarm event. line 1 */
static unsigned long adt7410_platform_data[2] = {
IRQ_PG4, IRQF_TRIGGER_LOW,
@@ -2229,7 +2229,7 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
},
#endif
-#if defined(CONFIG_ADT7410) || defined(CONFIG_ADT7410_MODULE)
+#if IS_ENABLED(CONFIG_SENSORS_ADT7410)
{
I2C_BOARD_INFO("adt7410", 0x48),
/* CT critical temperature event. line 0 */
--
1.7.11.7
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH v2] Blackfin: bf537: rename "CONFIG_ADT7310" and friends
2013-05-13 21:15 [PATCH] Blackfin: bf537: rename "CONFIG_ADT7410" Paul Bolle
@ 2013-05-14 8:14 ` Paul Bolle
0 siblings, 0 replies; 2+ messages in thread
From: Paul Bolle @ 2013-05-14 8:14 UTC (permalink / raw)
To: Mike Frysinger
Cc: Lars-Peter Clausen, Jonathan Cameron, uclinux-dist-devel, linux-kernel
In v3.10-rc1 the Analog Devices ADT7310/ADT7410 temperature sensor
driver was removed as an IIO driver. But it was apparently overlooked to
rename four references to CONFIG_ADT7310 and CONFIG_ADT7410 to
CONFIG_SENSORS_ADT7310 and CONFIG_SENSORS_ADT7410 respectively. Do so
now. Use the IS_ENABLED() macro, while we're at it.
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
---
0) The previous version ("Blackfin: bf537: rename "CONFIG_ADT7410"")
assumed an earlier patch had been applied upstream. That patch can be
found at https://lkml.org/lkml/2013/3/25/194 . But it is actually only
applied locally, on a branch that I use to do patches like these. It was
trivial to squash both patches into one patch.
1) Still untested. The choice for SENSORS_ADT7310 and SENSORS_ADT7410 is
still just educated guesswork.
2) It was commit cddc1424f39e7c04045a6431eaf13a003fb8335a ("staging:iio:
Remove adt7410 driver") that triggered this patch.
arch/blackfin/mach-bf537/boards/stamp.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index 759a430..90d2ab1 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -701,7 +701,7 @@ static struct bfin5xx_spi_chip ad7816_spi_chip_info = {
};
#endif
-#if defined(CONFIG_ADT7310) || defined(CONFIG_ADT7310_MODULE)
+#if IS_ENABLED(CONFIG_SENSORS_ADT7310)
static unsigned long adt7310_platform_data[3] = {
/* INT bound temperature alarm event. line 1 */
IRQ_PG4, IRQF_TRIGGER_LOW,
@@ -1063,7 +1063,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
},
#endif
-#if defined(CONFIG_ADT7310) || defined(CONFIG_ADT7310_MODULE)
+#if IS_ENABLED(CONFIG_SENSORS_ADT7310)
{
.modalias = "adt7310",
.max_speed_hz = 1000000,
@@ -2161,7 +2161,7 @@ static struct platform_device ad5398_userspace_consumer_device = {
#endif
#endif
-#if defined(CONFIG_ADT7410) || defined(CONFIG_ADT7410_MODULE)
+#if IS_ENABLED(CONFIG_SENSORS_ADT7410)
/* INT bound temperature alarm event. line 1 */
static unsigned long adt7410_platform_data[2] = {
IRQ_PG4, IRQF_TRIGGER_LOW,
@@ -2229,7 +2229,7 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
},
#endif
-#if defined(CONFIG_ADT7410) || defined(CONFIG_ADT7410_MODULE)
+#if IS_ENABLED(CONFIG_SENSORS_ADT7410)
{
I2C_BOARD_INFO("adt7410", 0x48),
/* CT critical temperature event. line 0 */
--
1.7.11.7
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-14 8:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-13 21:15 [PATCH] Blackfin: bf537: rename "CONFIG_ADT7410" Paul Bolle
2013-05-14 8:14 ` [PATCH v2] Blackfin: bf537: rename "CONFIG_ADT7310" and friends Paul Bolle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®