11 #include <linux/types.h>
13 #include <linux/device.h>
15 #include <linux/slab.h>
17 #include <linux/module.h>
22 #define DRV_NAME "ad5930"
24 #define value_mask (u16)0xf000
67 spi_message_init(&msg);
68 spi_message_add_tail(&xfer, &msg);
75 return ret ? ret : len;
80 static struct attribute *ad5930_attributes[] = {
81 &iio_dev_attr_dds.dev_attr.attr,
86 .attrs = ad5930_attributes,
89 static const struct iio_info ad5930_info = {
90 .attrs = &ad5930_attribute_group,
105 spi_set_drvdata(spi, idev);
110 idev->
dev.parent = &spi->
dev;
111 idev->
info = &ad5930_info;
143 .probe = ad5930_probe,