Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: IIO: DAC: Add support for the AD5543/AD5553

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>

authored by

Michael Hennerich and committed by
Greg Kroah-Hartman
0772268a b9618c0c

+16 -2
+2 -2
drivers/staging/iio/dac/Kconfig
··· 11 11 AD5664R convertors (DAC). This driver uses the common SPI interface. 12 12 13 13 config AD5446 14 - tristate "Analog Devices AD5444/6, AD5620/40/60 and AD5541A/12A DAC SPI driver" 14 + tristate "Analog Devices AD5444/6, AD5620/40/60 and AD5542A/12A DAC SPI driver" 15 15 depends on SPI 16 16 help 17 17 Say yes here to build support for Analog Devices AD5444, AD5446, 18 - AD5620, AD5640, AD5660 and AD5541A, AD5512A DACs. 18 + AD5512A, AD5542A, AD5543, AD5553, AD5620, AD5640, AD5660 DACs. 19 19 20 20 To compile this driver as a module, choose M here: the 21 21 module will be called ad5446.
+12
drivers/staging/iio/dac/ad5446.c
··· 132 132 .left_shift = 0, 133 133 .store_sample = ad5542_store_sample, 134 134 }, 135 + [ID_AD5543] = { 136 + .bits = 16, 137 + .storagebits = 16, 138 + .left_shift = 0, 139 + .store_sample = ad5542_store_sample, 140 + }, 135 141 [ID_AD5512A] = { 136 142 .bits = 12, 137 143 .storagebits = 16, 138 144 .left_shift = 4, 145 + .store_sample = ad5542_store_sample, 146 + }, 147 + [ID_AD5553] = { 148 + .bits = 14, 149 + .storagebits = 16, 150 + .left_shift = 0, 139 151 .store_sample = ad5542_store_sample, 140 152 }, 141 153 [ID_AD5620_2500] = {
+2
drivers/staging/iio/dac/ad5446.h
··· 84 84 ID_AD5444, 85 85 ID_AD5446, 86 86 ID_AD5542A, 87 + ID_AD5543, 87 88 ID_AD5512A, 89 + ID_AD5553, 88 90 ID_AD5620_2500, 89 91 ID_AD5620_1250, 90 92 ID_AD5640_2500,