iio: hi8435: Use gpiod_set_value_cansleep()
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Sun, 11 Aug 2019 05:45:11 +0000 (22:45 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 11 Aug 2019 08:46:13 +0000 (09:46 +0100)
commit6822dc9daa26102161e58a96b2ca938d14696006
tree7e0ad901e28e19bb2ae7899a38866ccdb052867a
parente031d5f558f1535968df1ecae8d734b84c17f78d
iio: hi8435: Use gpiod_set_value_cansleep()

Use gpiod_set_value_cansleep() instead of gpiod_set_value() to support
the case when reset pin is connected to a GPIO expander. See ZII VF610
SCU4 AIB for one such example.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-iio@vger.kernel.org
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Chris Healy <cphealy@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/hi8435.c