]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: adc: ad7192: fix channel select
authorMarkus Burri <markus.burri@mt.com>
Fri, 24 Jan 2025 15:07:03 +0000 (16:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 12:02:17 +0000 (13:02 +0100)
commit3b15c2a9b9031c7ad95838d4a27529ca34e35e4f
tree255b352d9a58a8275138e6ce87b2cc184df3d1f9
parentacd26074c8ec000346bda50e8eba2b5b9e819c97
iio: adc: ad7192: fix channel select

commit 21d7241faf406e8aee3ce348451cc362d5db6a02 upstream.

Channel configuration doesn't work as expected.
For FIELD_PREP the bit mask is needed and not the bit number.

Fixes: 874bbd1219c7 ("iio: adc: ad7192: Use bitfield access macros")
Signed-off-by: Markus Burri <markus.burri@mt.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20250124150703.97848-1-markus.burri@mt.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/ad7192.c