iio: potentiometer: ad5272: Correct polarity of reset
authorPhil Reid <preid@electromag.com.au>
Tue, 24 Nov 2020 05:00:14 +0000 (13:00 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 3 Dec 2020 19:32:42 +0000 (19:32 +0000)
commit7dd94246fe542e45915ad27817317a41d796d13a
treea8eb7334dcb4173338278422e33de40ecb2bdfb7
parent672f3022837968958980b0634ebdcf98355a47ed
iio: potentiometer: ad5272: Correct polarity of reset

The driver should assert reset by setting the gpio high, and
then release it by setting it the gpio low. This allows the
device tree (or other hardware definition) to specify how the
gpio is configured.

For example as open drain or push-pull depending on the
connected hardware.

Signed-off-by: Phil Reid <preid@electromag.com.au>
Link: https://lore.kernel.org/r/20201124050014.4453-1-preid@electromag.com.au
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/potentiometer/ad5272.c