Skip to content

Commit

Permalink
staging:iio:dac:ad5791: Add id entry for the ad5790
Browse files Browse the repository at this point in the history
The ad5790 has a binary compatible interface to ad5791, so we just have to add
an entry to the drivers device table to add support for it.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Lars-Peter Clausen authored and Greg Kroah-Hartman committed Dec 9, 2011
1 parent 036f419 commit 9d41c5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/iio/dac/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ config AD5764
module will be called ad5764.

config AD5791
tristate "Analog Devices AD5760/AD5780/AD5781/AD5791 DAC SPI driver"
tristate "Analog Devices AD5760/AD5780/AD5781/AD5790/AD5791 DAC SPI driver"
depends on SPI
help
Say yes here to build support for Analog Devices AD5760, AD5780,
AD5781, AD5791 High Resolution Voltage Output Digital to
AD5781, AD5790, AD5791 High Resolution Voltage Output Digital to
Analog Converter.

To compile this driver as a module, choose M here: the
Expand Down
6 changes: 4 additions & 2 deletions drivers/staging/iio/dac/ad5791.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* AD5760, AD5780, AD5781, AD5791 Voltage Output Digital to Analog Converter
* AD5760, AD5780, AD5781, AD5790, AD5791 Voltage Output Digital to Analog
* Converter
*
* Copyright 2011 Analog Devices Inc.
*
Expand Down Expand Up @@ -397,6 +398,7 @@ static const struct spi_device_id ad5791_id[] = {
{"ad5760", ID_AD5760},
{"ad5780", ID_AD5780},
{"ad5781", ID_AD5781},
{"ad5790", ID_AD5791},
{"ad5791", ID_AD5791},
{}
};
Expand Down Expand Up @@ -425,5 +427,5 @@ static __exit void ad5791_spi_exit(void)
module_exit(ad5791_spi_exit);

MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
MODULE_DESCRIPTION("Analog Devices AD5760/AD5780/AD5781/AD5791 DAC");
MODULE_DESCRIPTION("Analog Devices AD5760/AD5780/AD5781/AD5790/AD5791 DAC");
MODULE_LICENSE("GPL v2");

0 comments on commit 9d41c5b

Please sign in to comment.