iio: adc: ad7780: remove IIO_CHAN_INFO_SAMP_FREQ support
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Mon, 12 Mar 2018 15:48:15 +0000 (17:48 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 17 Mar 2018 20:50:26 +0000 (20:50 +0000)
commit192af06a287bbfcae0de8fa456dca15767ecd056
treeb64b9c34d9a3dfde9841cde0202a35b1914c3fd6
parent381522c030b5c249b70f4e35e3473ba07fa2cdc5
iio: adc: ad7780: remove IIO_CHAN_INFO_SAMP_FREQ support

The `ad7780` driver does not implement setting/getting the sampling
frequency.
For the ad7780/ad7781 devices, the control is done via an external pin,
and the ad7170/ad7171 devices have a fixed sampling rate (so, no control).

For these devices, and similar other that may be added later on,
a AD_SD_CHANNEL_NO_SAMPLE_FREQ() macro has been added, which doesn't set
the IIO_CHAN_INFO_SAMP_FREQ flag.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/adc/ad7780.c
include/linux/iio/adc/ad_sigma_delta.h