Skip to content

Commit

Permalink
Blackfin: bf537: rename "CONFIG_AD7314"
Browse files Browse the repository at this point in the history
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: Paul Bolle <pebolle@tiscali.nl>
  • Loading branch information
Paul Bolle authored and Steven Miao committed Apr 12, 2014
1 parent 6ffe346 commit e3dd192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/blackfin/mach-bf537/boards/stamp.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ static struct bfin5xx_spi_chip ad2s1210_spi_chip_info = {
};
#endif

#if defined(CONFIG_AD7314) || defined(CONFIG_AD7314_MODULE)
#if IS_ENABLED(CONFIG_SENSORS_AD7314)
static struct bfin5xx_spi_chip ad7314_spi_chip_info = {
.enable_dma = 0,
};
Expand Down Expand Up @@ -1040,7 +1040,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
},
#endif

#if defined(CONFIG_AD7314) || defined(CONFIG_AD7314_MODULE)
#if IS_ENABLED(CONFIG_SENSORS_AD7314)
{
.modalias = "ad7314",
.max_speed_hz = 1000000,
Expand Down

0 comments on commit e3dd192

Please sign in to comment.