iio: adc: ad7791: implement IIO_CHAN_INFO_SAMP_FREQ
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Mon, 12 Mar 2018 12:06:54 +0000 (14:06 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 17 Mar 2018 20:47:21 +0000 (20:47 +0000)
commit381522c030b5c249b70f4e35e3473ba07fa2cdc5
tree3460e7ae94c768527a644d9efe4e82f31904e1b3
parent7eb6b35d93c356f1afebbfb808bc296d6351e708
iio: adc: ad7791: implement IIO_CHAN_INFO_SAMP_FREQ

Now that the old read/write frequency sysfs attrs have been removed, we
have a clean slate to implement IIO_CHAN_INFO_SAMP_FREQ.

This driver also pre-dates IIO_CHAN_INFO_SAMP_FREQ, and this change
implements this behavior.

The `ad7791_write_raw` would have overlapped quite a bit with the old
read/write frequency functions, making things a bit harder to follow.

Fixes: a13e831fcaa7 ("staging: iio: ad7192: implement
IIO_CHAN_INFO_SAMP_FREQ")

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7791.c