]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitede2ab3d34fe4944ba6714d397ee4a0aa93c290f
tree2121a38638c76fe84bb10712847fb6359b5c1057
parente7dcb7c1585d4aad286f24e6aafe5bc9aaac611e
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