acrn-kernel/drivers/iio/dac
Axel Lin 0ae5fb6fd3 iio: dac: Fix build error when CONFIG_SPI_MASTER=y && CONFIG_I2C=m
This patch fixes below build error when CONFIG_SPI_MASTER=y && CONFIG_I2C=m:

drivers/built-in.o: In function `ad5064_i2c_write':
drivers/iio/dac/ad5064.c:608: undefined reference to `i2c_master_send'
drivers/built-in.o: In function `ad5064_i2c_register_driver':
drivers/iio/dac/ad5064.c:646: undefined reference to `i2c_register_driver'
drivers/built-in.o: In function `ad5064_i2c_unregister_driver':
drivers/iio/dac/ad5064.c:651: undefined reference to `i2c_del_driver'
make: *** [vmlinux] Error 1

When CONFIG_I2C=m, meaning we can't build the drivers in with I2C support.
Thus don't allow the drivers to be compiled as built-in when CONFIG_I2C=m.

The real fix though is to break the driver apart into a SPI part, an I2C part
and a common part. But that's something for 3.11 while this is something for
3.10/stable.

Reported-by: Wu Fengguang <fengguang.wu@intel.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2013-05-22 22:14:58 +01:00
..
Kconfig iio: dac: Fix build error when CONFIG_SPI_MASTER=y && CONFIG_I2C=m 2013-05-22 22:14:58 +01:00
Makefile
ad5064.c First set of IIO new drivers and cleanup for the 3.10 cycle. 2013-03-25 10:50:03 -07:00
ad5360.c
ad5380.c
ad5421.c
ad5446.c
ad5449.c
ad5504.c
ad5624r.h
ad5624r_spi.c
ad5686.c
ad5755.c iio:dac:ad5755 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:33 +00:00
ad5764.c iio:dac:ad5764 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:33 +00:00
ad5791.c iio:dac:ad5791 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:33 +00:00
max517.c iio:dac:max517 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:34 +00:00
mcp4725.c iio:dac:mcp4725 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:34 +00:00