Commit 3b15c2a9 authored by Markus Burri's avatar Markus Burri Committed by Greg Kroah-Hartman
Browse files

iio: adc: ad7192: fix channel select



commit 21d7241f upstream.

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

Fixes: 874bbd12 ("iio: adc: ad7192: Use bitfield access macros")
Signed-off-by: default avatarMarkus Burri <markus.burri@mt.com>
Reviewed-by: default avatarNuno 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: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent acd26074
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment