staging: IIO: DAC: Add support for the AD5543/AD5553
authorMichael Hennerich <michael.hennerich@analog.com>
Wed, 23 Feb 2011 09:45:47 +0000 (10:45 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Feb 2011 22:40:04 +0000 (14:40 -0800)
Add support for the AD5543/AD5553 SPI 16-/14-Bit DACs
Fix typo in kconfig description

Changes since V1:
reorder Kconfig help text

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/dac/Kconfig
drivers/staging/iio/dac/ad5446.c
drivers/staging/iio/dac/ad5446.h

index 2120904ae85d0fb6dcbb7bb5fdb136db0206516d..3c72871389a29e7d48752839a24d7f5ed34586b5 100644 (file)
@@ -11,11 +11,11 @@ config AD5624R_SPI
          AD5664R convertors (DAC). This driver uses the common SPI interface.
 
 config AD5446
-       tristate "Analog Devices AD5444/6, AD5620/40/60 and AD5541A/12A DAC SPI driver"
+       tristate "Analog Devices AD5444/6, AD5620/40/60 and AD5542A/12A DAC SPI driver"
        depends on SPI
        help
          Say yes here to build support for Analog Devices AD5444, AD5446,
-         AD5620, AD5640, AD5660 and AD5541A, AD5512A DACs.
+         AD5512A, AD5542A, AD5543, AD5553, AD5620, AD5640, AD5660 DACs.
 
          To compile this driver as a module, choose M here: the
          module will be called ad5446.
index 0f87ecac82fc044e84d7673152e71f3f9d3d821a..dcec29733807291efcfe89f0b2f883f835a29c4e 100644 (file)
@@ -132,12 +132,24 @@ static const struct ad5446_chip_info ad5446_chip_info_tbl[] = {
                .left_shift = 0,
                .store_sample = ad5542_store_sample,
        },
+       [ID_AD5543] = {
+               .bits = 16,
+               .storagebits = 16,
+               .left_shift = 0,
+               .store_sample = ad5542_store_sample,
+       },
        [ID_AD5512A] = {
                .bits = 12,
                .storagebits = 16,
                .left_shift = 4,
                .store_sample = ad5542_store_sample,
        },
+       [ID_AD5553] = {
+               .bits = 14,
+               .storagebits = 16,
+               .left_shift = 0,
+               .store_sample = ad5542_store_sample,
+       },
        [ID_AD5620_2500] = {
                .bits = 12,
                .storagebits = 16,
index 902542e22c4a0de1df3cb50b4089666803bf4214..0cb9c14279e617d98d37cb3a77840d462e675f90 100644 (file)
@@ -84,7 +84,9 @@ enum ad5446_supported_device_ids {
        ID_AD5444,
        ID_AD5446,
        ID_AD5542A,
+       ID_AD5543,
        ID_AD5512A,
+       ID_AD5553,
        ID_AD5620_2500,
        ID_AD5620_1250,
        ID_AD5640_2500,