Files
linux/drivers
Nikita Yushchenko e187c0c910 iio: hi8435: cleanup reset gpio
[ Upstream commit 61305664a5 ]

Reset GPIO is active low.

Currently driver uses gpiod_set_value(1) to clean reset, which depends
on device tree to contain GPIO_ACTIVE_HIGH - that does not match reality.

This fixes driver to use _raw version of gpiod_set_value() to enforce
active-low semantics despite of what's written in device tree. Allowing
device tree to override that only opens possibility for errors and does
not add any value.

Additionally, use _cansleep version to make things work with i2c-gpio
and other sleeping gpio drivers.

Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-13 19:48:02 +02:00
..
2017-12-14 09:28:24 +01:00
2018-04-08 12:12:46 +02:00
2018-02-25 11:05:55 +01:00
2018-04-13 19:48:02 +02:00
2017-09-09 17:39:41 +02:00
2018-04-13 19:47:52 +02:00
2016-09-20 20:57:12 +10:00