Skip to content

Commit bb56bb9

Browse files
committed
iio: dac: Add AD5413 driver
Introduce AD5413 IIO DAC driver: - guard(mutex) for locking - dev_err_probe() on probe-path failures - Unit-agnostic range tables (.min/.max) with designated initializers - CRC disable/refactor via helpers and macros - Wire into drivers/iio/dac/Kconfig and Makefile Signed-off-by: Bruce Tsao <[email protected]>
1 parent d7200d9 commit bb56bb9

File tree

3 files changed

+730
-1
lines changed

3 files changed

+730
-1
lines changed

drivers/iio/dac/Kconfig

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ config AD5380
9696
To compile this driver as module choose M here: the module will be called
9797
ad5380.
9898

99+
config AD5413
100+
tristate "Analog Devices AD5413 DAC driver"
101+
depends on SPI_MASTER
102+
help
103+
Say yes here to build support for Analog Devices AD5413 single channel
104+
Digital to Analog Converter.
105+
106+
To compile this driver as a module, choose M here: the
107+
module will be called ad5413.
108+
99109
config AD5421
100110
tristate "Analog Devices AD5421 DAC driver"
101111
depends on SPI
@@ -597,5 +607,4 @@ config VF610_DAC
597607

598608
This driver can also be built as a module. If so, the module will
599609
be called vf610_dac.
600-
601610
endmenu

drivers/iio/dac/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ obj-$(CONFIG_AD3552R) += ad3552r.o
1111
obj-$(CONFIG_AD5270) += ad5270.o
1212
obj-$(CONFIG_AD5360) += ad5360.o
1313
obj-$(CONFIG_AD5380) += ad5380.o
14+
obj-$(CONFIG_AD5413) += ad5413.o
1415
obj-$(CONFIG_AD5421) += ad5421.o
1516
obj-$(CONFIG_AD5624R_SPI) += ad5624r_spi.o
1617
obj-$(CONFIG_AD5064) += ad5064.o

0 commit comments

Comments
 (0)