Skip to content

Commit

Permalink
iio:ad7476: Add ad7910/ad7920 device table entries
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Jonathan Cameron committed Sep 15, 2012
1 parent 968f3d5 commit ac5332b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 5 additions & 4 deletions drivers/iio/adc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ config AD7791
called ad7791.

config AD7476
tristate "Analog Devices AD7475/6/7/8 AD7466/7/8 and AD7495 ADC driver"
tristate "Analog Devices AD7476 and similar 1-channel ADCs driver"
depends on SPI
select IIO_BUFFER
select IIO_TRIGGERED_BUFFER
help
Say yes here to build support for Analog Devices
AD7475, AD7476, AD7477, AD7478, AD7466, AD7467, AD7468, AD7495
SPI analog to digital converters (ADC).
Say yes here to build support for Analog Devices AD7475, AD7476, AD7477,
AD7478, AD7466, AD7467, AD7468, AD7495, AD7910, AD7920 SPI analog to
digital converters (ADC).

If unsure, say N (but it's safe to say "Y").

To compile this driver as a module, choose M here: the
Expand Down
4 changes: 3 additions & 1 deletion drivers/iio/adc/ad7476.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ static const struct spi_device_id ad7476_id[] = {
{"ad7478", ID_AD7468},
{"ad7478a", ID_AD7468},
{"ad7495", ID_AD7495},
{"ad7910", ID_AD7467},
{"ad7920", ID_AD7466},
{}
};
MODULE_DEVICE_TABLE(spi, ad7476_id);
Expand All @@ -274,5 +276,5 @@ static struct spi_driver ad7476_driver = {
module_spi_driver(ad7476_driver);

MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
MODULE_DESCRIPTION("Analog Devices AD7475/6/7/8(A) AD7466/7/8 ADC");
MODULE_DESCRIPTION("Analog Devices AD7476 and similar 1-channel ADCs");
MODULE_LICENSE("GPL v2");

0 comments on commit ac5332b

Please sign in to comment.