Skip to content
Commit b1451e54 authored by Patil, Rachna's avatar Patil, Rachna Committed by Jonathan Cameron
Browse files

iio: ti_am335x_adc: Fix wrong samples received on 1st read



Previously we tried to read data form ADC even before ADC sequencer
finished sampling. This led to wrong samples.
We now wait on ADC status register idle bit to be set.

Signed-off-by: default avatarPatil, Rachna <rachna@ti.com>
Signed-off-by: default avatarZubair Lutfullah <zubair.lutfullah@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent a1a8e1dc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment