9 #include <linux/module.h>
11 #include <linux/types.h>
17 #define MAX_SPI_FREQ_HZ 23500000
19 static int ad7606_spi_read_block(
struct device *
dev,
26 ret = spi_read(spi, (
u8 *)buf, count * 2);
32 for (i = 0; i <
count; i++)
39 .read_block = ad7606_spi_read_block,
50 if (IS_ERR(indio_dev))
51 return PTR_ERR(indio_dev);
53 spi_set_drvdata(spi, indio_dev);
66 static int ad7606_spi_suspend(
struct device *
dev)
75 static int ad7606_spi_resume(
struct device *
dev)
84 static const struct dev_pm_ops ad7606_pm_ops = {
86 .resume = ad7606_spi_resume,
88 #define AD7606_SPI_PM_OPS (&ad7606_pm_ops)
91 #define AD7606_SPI_PM_OPS NULL
108 .probe = ad7606_spi_probe,
110 .id_table = ad7606_id,