]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 3 Feb 2025 19:30:11 +0000 (19:30 +0000)
commit21d7241faf406e8aee3ce348451cc362d5db6a02
tree2debdf6ceb83039c45bc8d43c25713f2f8f6a1b6
parent4eba4d92906c3814ca3ec65c16af27c46c12342e
iio: adc: ad7192: fix channel select

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>
drivers/iio/adc/ad7192.c