Commit e3dd1929 authored by Paul Bolle's avatar Paul Bolle Committed by Steven Miao

Blackfin: bf537: rename "CONFIG_AD7314"

In v3.2 the Analog Devices AD7314 temperature sensor driver was removed
as an IIO driver and added as a HWMON driver. But it was apparently
overlooked to rename two references to CONFIG_AD7314 to
CONFIG_SENSORS_AD7314. Do so now. Use the IS_ENABLED() macro, while
we're at it.
Signed-off-by: default avatarPaul Bolle <pebolle@tiscali.nl>
parent 6ffe3463
...@@ -682,7 +682,7 @@ static struct bfin5xx_spi_chip ad2s1210_spi_chip_info = { ...@@ -682,7 +682,7 @@ static struct bfin5xx_spi_chip ad2s1210_spi_chip_info = {
}; };
#endif #endif
#if defined(CONFIG_AD7314) || defined(CONFIG_AD7314_MODULE) #if IS_ENABLED(CONFIG_SENSORS_AD7314)
static struct bfin5xx_spi_chip ad7314_spi_chip_info = { static struct bfin5xx_spi_chip ad7314_spi_chip_info = {
.enable_dma = 0, .enable_dma = 0,
}; };
...@@ -1040,7 +1040,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { ...@@ -1040,7 +1040,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
}, },
#endif #endif
#if defined(CONFIG_AD7314) || defined(CONFIG_AD7314_MODULE) #if IS_ENABLED(CONFIG_SENSORS_AD7314)
{ {
.modalias = "ad7314", .modalias = "ad7314",
.max_speed_hz = 1000000, .max_speed_hz = 1000000,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment