iio: adc: ad7606: Move spi dependent features to spi file
authorBeniamin Bia <beniamin.bia@analog.com>
Thu, 18 Jul 2019 06:27:31 +0000 (09:27 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 28 Jul 2019 07:53:59 +0000 (08:53 +0100)
commita0c648c07ce50744d0f6ddb58b483e87907e9122
tree5fa9ba284c5c11f5dc164e990bf18fc968da126a
parent7677f73158d3dac530daca7ce834603989c05b18
iio: adc: ad7606: Move spi dependent features to spi file

Because software mode and register access are only available in spi, they
were moved in spi file and are accessbile via bops structure.
The write_os/scale will be overwritten by sw_mode_config function.
This patch was made in order to support devices in software mode without
making the driver dependent to spi and increase the abstraction of the
core.

Signed-off-by: Beniamin Bia <beniamin.bia@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7606.c
drivers/iio/adc/ad7606.h