9 #include <linux/module.h>
11 #include <linux/types.h>
18 static int ad7606_par16_read_block(
struct device *
dev,
22 struct iio_dev *indio_dev = platform_get_drvdata(pdev);
31 .read_block = ad7606_par16_read_block,
34 static int ad7606_par8_read_block(
struct device *dev,
38 struct iio_dev *indio_dev = platform_get_drvdata(pdev);
47 .read_block = ad7606_par8_read_block,
68 remap_size = resource_size(res);
83 remap_size > 1 ? &ad7606_par16_bops :
86 if (IS_ERR(indio_dev)) {
87 ret = PTR_ERR(indio_dev);
91 platform_set_drvdata(pdev, indio_dev);
105 struct iio_dev *indio_dev = platform_get_drvdata(pdev);
115 platform_set_drvdata(pdev,
NULL);
121 static int ad7606_par_suspend(
struct device *dev)
130 static int ad7606_par_resume(
struct device *dev)
139 static const struct dev_pm_ops ad7606_pm_ops = {
141 .resume = ad7606_par_resume,
143 #define AD7606_PAR_PM_OPS (&ad7606_pm_ops)
146 #define AD7606_PAR_PM_OPS NULL
166 .probe = ad7606_par_probe,
168 .id_table = ad7606_driver_ids,