IIO: DDS: AD9832 / AD9835 driver
Subsystems (4)
[email protected]
maintainerPATCH 1/1 IIO: DDS: AD9832 / AD9835 driver
From: Michael Hennerich <[email protected]>
This is a complete rewrite of the AD9832/35 driver. Purpose was to move this driver to the recently created API for such devices.
Changes since V1:
IIO: DDS: AD9832 / AD9835 driver: Apply review feedback
Save a few bytes, use union for data allocated for spi buffers. Remove use of device IDs.
Fix comments.
Make master clock mclk always type unsigned long.
Signed-off-by Michael Hennerich <[email protected]>
Acked-by Jonathan Cameron <[email protected]>
--- drivers/staging/iio/dds/Kconfig | 5 +- drivers/staging/iio/dds/ad9832.c | 488 ++++++++++++++++++++++++-------------- drivers/staging/iio/dds/ad9832.h | 128 ++++++++++ 3 files changed, 436 insertions(+), 185 deletions(-) create mode 100644 drivers/staging/iio/dds/ad9832.h
drivers/staging/iio/dds/Kconfig +4 -1
@@ -15,7 +15,10 @@ config AD9832 depends on SPI help Say yes here to build support for Analog Devices DDS chip - ad9832 and ad9835, provides direct access via sysfs. + AD9832 and AD9835, provides direct access via sysfs. + + To compile this driver as a module, choose M here: the + module will be called ad9832. config AD9834 tristate "Analog Devices ad9833/4/ driver"
drivers/staging/iio/dds/ad9832.c +304 -184
565 lines not on this page · raw message
drivers/staging/iio/dds/ad9832.h new file +128 -0
128 lines not on this page · raw message
--
1.6.0.2