diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-09-10 04:34:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-09-15 05:02:15 -0400 |
commit | ac5332b1475b474a478d9336635849339546e235 (patch) | |
tree | 7c1da6c3151b9713fd20f64c808b71f41abf0185 /drivers/iio | |
parent | 968f3d5ba006d21677145739d8b3f864b5af15c6 (diff) |
iio:ad7476: Add ad7910/ad7920 device table entries
The ad7910/ad7920 are software compatible to the ad7467/ad7466.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/adc/Kconfig | 9 | ||||
-rw-r--r-- | drivers/iio/adc/ad7476.c | 4 |
2 files changed, 8 insertions, 5 deletions
diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index f98c493efff8..c71a0009cc79 100644 --- a/drivers/iio/adc/Kconfig +++ b/drivers/iio/adc/Kconfig | |||
@@ -31,14 +31,15 @@ config AD7791 | |||
31 | called ad7791. | 31 | called ad7791. |
32 | 32 | ||
33 | config AD7476 | 33 | config AD7476 |
34 | tristate "Analog Devices AD7475/6/7/8 AD7466/7/8 and AD7495 ADC driver" | 34 | tristate "Analog Devices AD7476 and similar 1-channel ADCs driver" |
35 | depends on SPI | 35 | depends on SPI |
36 | select IIO_BUFFER | 36 | select IIO_BUFFER |
37 | select IIO_TRIGGERED_BUFFER | 37 | select IIO_TRIGGERED_BUFFER |
38 | help | 38 | help |
39 | Say yes here to build support for Analog Devices | 39 | Say yes here to build support for Analog Devices AD7475, AD7476, AD7477, |
40 | AD7475, AD7476, AD7477, AD7478, AD7466, AD7467, AD7468, AD7495 | 40 | AD7478, AD7466, AD7467, AD7468, AD7495, AD7910, AD7920 SPI analog to |
41 | SPI analog to digital converters (ADC). | 41 | digital converters (ADC). |
42 | |||
42 | If unsure, say N (but it's safe to say "Y"). | 43 | If unsure, say N (but it's safe to say "Y"). |
43 | 44 | ||
44 | To compile this driver as a module, choose M here: the | 45 | To compile this driver as a module, choose M here: the |
diff --git a/drivers/iio/adc/ad7476.c b/drivers/iio/adc/ad7476.c index a33a4066ebe2..093a4ed900d8 100644 --- a/drivers/iio/adc/ad7476.c +++ b/drivers/iio/adc/ad7476.c | |||
@@ -258,6 +258,8 @@ static const struct spi_device_id ad7476_id[] = { | |||
258 | {"ad7478", ID_AD7468}, | 258 | {"ad7478", ID_AD7468}, |
259 | {"ad7478a", ID_AD7468}, | 259 | {"ad7478a", ID_AD7468}, |
260 | {"ad7495", ID_AD7495}, | 260 | {"ad7495", ID_AD7495}, |
261 | {"ad7910", ID_AD7467}, | ||
262 | {"ad7920", ID_AD7466}, | ||
261 | {} | 263 | {} |
262 | }; | 264 | }; |
263 | MODULE_DEVICE_TABLE(spi, ad7476_id); | 265 | MODULE_DEVICE_TABLE(spi, ad7476_id); |
@@ -274,5 +276,5 @@ static struct spi_driver ad7476_driver = { | |||
274 | module_spi_driver(ad7476_driver); | 276 | module_spi_driver(ad7476_driver); |
275 | 277 | ||
276 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); | 278 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); |
277 | MODULE_DESCRIPTION("Analog Devices AD7475/6/7/8(A) AD7466/7/8 ADC"); | 279 | MODULE_DESCRIPTION("Analog Devices AD7476 and similar 1-channel ADCs"); |
278 | MODULE_LICENSE("GPL v2"); | 280 | MODULE_LICENSE("GPL v2"); |