Skip to content
Snippets Groups Projects
Commit 21d7241f authored by Markus Burri's avatar Markus Burri Committed by Jonathan Cameron
Browse files

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: 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>
parent 4eba4d92
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment