]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: adc: ad7606: fix standby gpio state to match the documentation
authorGuillaume Stols <gstols@baylibre.com>
Tue, 2 Jul 2024 17:34:11 +0000 (17:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:06 +0000 (15:11 +0200)
commit01a2e65598a2d3b8ad1759da355040048cbe4e10
treeeddf92b4d77c76d51804dc391a041bb50456ceb6
parent2abf0fa4f4b29fe841ede4f006db0f47bc1e7a83
iio: adc: ad7606: fix standby gpio state to match the documentation

[ Upstream commit 059fe4f8bbdf5cad212e1aeeb3e8968c80b9ff3b ]

The binding's documentation specifies that "As the line is active low, it
should be marked GPIO_ACTIVE_LOW". However, in the driver, it was handled
the opposite way. This commit sets the driver's behaviour in sync with the
documentation

Fixes: 722407a4e8c0 ("staging:iio:ad7606: Use GPIO descriptor API")
Signed-off-by: Guillaume Stols <gstols@baylibre.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iio/adc/ad7606.c