]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: adc: stm32-dfsdm: fix st,adc-alt-channel property handling
authorOlivier Moysan <olivier.moysan@foss.st.com>
Thu, 2 Oct 2025 11:22:49 +0000 (13:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2025 21:24:58 +0000 (06:24 +0900)
commit9ef53b3540338cde4fe55a5cd94dc1deabad05fe
treef052d141378b5164616196d8ef131ce5c7cb1b76
parent5b82774d0e4faca1575d227ecbdcac15aba7ca8e
iio: adc: stm32-dfsdm: fix st,adc-alt-channel property handling

commit 8a6b7989ff0cd0a95c93be1927f2af7ad10f28de upstream.

Initially st,adc-alt-channel property was defined as an enum in the DFSDM
binding. The DFSDM binding has been changed to use the new IIO backend
framework, along with the adoption of IIO generic channels.
In this new binding st,adc-alt-channel is defined as a boolean property,
but it is still handled has an enum in DFSDM driver.
Fix st,adc-alt-channel property handling in DFSDM driver.

Fixes: 3208fa0cd919 ("iio: adc: stm32-dfsdm: adopt generic channels bindings")
Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/stm32-dfsdm-adc.c