kernel_optimize_test/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
..
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 iio:dac:ad5360 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:31 +00:00
ad5380.c iio:dac:ad5380 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:31 +00:00
ad5421.c iio:dac:ad5421 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:31 +00:00
ad5446.c iio:dac:ad5446 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:32 +00:00
ad5449.c iio:dac:ad5449 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:32 +00:00
ad5504.c iio:dac:ad5504 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:32 +00:00
ad5624r_spi.c iio:dac:ad5624r move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:32 +00:00
ad5624r.h
ad5686.c iio:dac:ad5686 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:33 +00:00
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
Kconfig iio: dac: Fix build error when CONFIG_SPI_MASTER=y && CONFIG_I2C=m 2013-05-22 22:14:58 +01:00
Makefile iio:dac: Add support for the ad5449 2012-10-19 18:46:51 +01: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