linux/drivers/iio
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
..
adc iio:adc: Add AD7265/AD7266 support 2012-06-30 10:15:07 +01:00
amplifiers iio: amplifiers: New driver for AD8366 Dual-Digital Variable Gain Amplifier 2012-05-14 13:15:39 -07:00
dac iio: ad5064: Move bus write callbacks to #if protected sections 2012-07-12 17:57:16 +01:00
frequency iio: ad9523: Fix argument type mismatch 2012-06-12 14:50:51 -07:00
light iio: add vcnl4000 combined ALS and proximity sensor 2012-06-20 16:12:46 -07:00
iio_core_trigger.h
iio_core.h
industrialio-buffer.c iio: iio_buffer_register: Use correct channel when calculating masklength 2012-07-08 20:02:23 +01:00
industrialio-core.c IIO: Add a modifier for x^2+y^2+z^2 2012-06-30 10:15:28 +01:00
industrialio-event.c iio: Fix unitialized use of list 2012-07-08 20:02:24 +01:00
industrialio-trigger.c iio:trigger: Use to_iio_trigger() instead of dev_get_drvdata() 2012-06-22 21:08:11 -07:00
industrialio-triggered-buffer.c iio: Add helper function for initializing triggered buffers 2012-06-18 17:26:09 -07:00
inkern.c iio: Fix inkern remove incorrect put of device 2012-07-08 20:02:31 +01:00
Kconfig Merge 3.5-rc4 into staging-next 2012-06-25 09:31:00 -07:00
kfifo_buf.c
Makefile iio: Add helper function for initializing triggered buffers 2012-06-18 17:26:09 -07:00