Skip to contentSkip to conversation

IIO: DDS: AD9832 / AD9835 driver

PATCH New [email protected] 1 participant 1 message Feb 9, 2011

Subsystems (4)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 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.

---
 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
index a047da6..06b6f3a 100644
@@ -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