11 #include <linux/types.h>
13 #include <linux/device.h>
15 #include <linux/slab.h>
17 #include <linux/module.h>
22 #define DRV_NAME "ad9850"
24 #define value_mask (u16)0xf000
53 spi_message_init(&msg);
54 spi_message_add_tail(&xfer, &msg);
61 return ret ? ret : len;
66 static struct attribute *ad9850_attributes[] = {
67 &iio_dev_attr_dds.dev_attr.attr,
72 .attrs = ad9850_attributes,
75 static const struct iio_info ad9850_info = {
76 .attrs = &ad9850_attribute_group,
91 spi_set_drvdata(spi, idev);
96 idev->
dev.parent = &spi->
dev;
97 idev->
info = &ad9850_info;
129 .probe = ad9850_probe,