iio: ad_sigma_delta: Implement a dedicated reset function
authorDragos Bogdan <dragos.bogdan@analog.com>
Tue, 5 Sep 2017 12:14:45 +0000 (15:14 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 24 Sep 2017 15:58:21 +0000 (16:58 +0100)
commit7fc10de8d49a748c476532c9d8e8fe19e548dd67
tree2121a38638c76fe84bb10712847fb6359b5c1057
parent4b1f0c31f96c45e8521dd84aae50f2aa4aecfb7b
iio: ad_sigma_delta: Implement a dedicated reset function

Since most of the SD ADCs have the option of reseting the serial
interface by sending a number of SCLKs with CS = 0 and DIN = 1,
a dedicated function that can do this is usefull.

Needed for the patch:  iio: ad7793: Fix the serial interface reset
Signed-off-by: Dragos Bogdan <dragos.bogdan@analog.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad_sigma_delta.c
include/linux/iio/adc/ad_sigma_delta.h