linux/drivers/iio/dac
Lars-Peter Clausen 9660ac704e iio: ad5064: Move bus write callbacks to #if protected sections
Move the SPI and I2C specific write callbacks to the respective
"#if IS_ENABLED(CONFIG_SPI_MASTER)" and "#if IS_ENABLED(CONFIG_I2C)"
protected sections of the code.

This fixes the following warning which occurs if CONFIG_I2C is not set:
	drivers/iio/dac/ad5064.c: In function ‘ad5064_i2c_write’:
	drivers/iio/dac/ad5064.c:132: error: implicit declaration of function ‘i2c_master_send’

And the follwing warning which occurs when CONFIG_SPI_MASTER is not set:
	drivers/iio/dac/ad5064.c:137: warning: ‘ad5064_spi_write’ defined but not used

Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2012-07-12 17:57:16 +01:00
..
ad5064.c iio: ad5064: Move bus write callbacks to #if protected sections 2012-07-12 17:57:16 +01:00
ad5360.c staging:iio: Move DAC drivers out of staging 2012-06-05 14:02:25 +09:00
ad5380.c iio: dac: Convert ad5380 to devm_regmap_* APIs 2012-06-15 14:36:25 -07:00
ad5421.c staging:iio: Move DAC drivers out of staging 2012-06-05 14:02:25 +09:00
ad5446.c iio:dac:ad5446: Add support for the AD5450/51/52/53 2012-06-26 14:57:30 -07:00
ad5446.h iio:dac:ad5446: Add support for the AD5450/51/52/53 2012-06-26 14:57:30 -07:00
ad5504.c staging:iio: Move DAC drivers out of staging 2012-06-05 14:02:25 +09:00
ad5624r_spi.c staging:iio: Move DAC drivers out of staging 2012-06-05 14:02:25 +09:00
ad5624r.h staging:iio: Move DAC drivers out of staging 2012-06-05 14:02:25 +09:00
ad5686.c staging:iio: Move DAC drivers out of staging 2012-06-05 14:02:25 +09:00
ad5764.c staging:iio: Move DAC drivers out of staging 2012-06-05 14:02:25 +09:00
ad5791.c staging:iio: Move DAC drivers out of staging 2012-06-05 14:02:25 +09:00
Kconfig iio:dac:ad5064: Add support for the ad5629r and ad5669r 2012-06-30 10:15:09 +01:00
Makefile iio: add mcp4725 I2C DAC driver 2012-06-12 14:50:51 -07:00
max517.c iio: max517: mark probe() and remove() with __devinit and __devexit 2012-06-12 14:45:16 -07:00
mcp4725.c iio: add mcp4725 I2C DAC driver 2012-06-12 14:50:51 -07:00