iio: ti_am335x_adc: Fix: Use same step id at FIFOs both ends
authorJan Kardell <jan.kardell@telliq.com>
Thu, 6 Nov 2014 22:18:00 +0000 (22:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2014 23:21:02 +0000 (16:21 -0700)
commitd0753fc78d15d62e10cec887a2745166054ee9dc
tree6b55aa2e577f6ade57c98c3c5478dd7f0982518b
parent10303497df81a3f33c83898790bc99791a5541ba
iio: ti_am335x_adc: Fix: Use same step id at FIFOs both ends

commit baa3c65298c089a9014b4e523a14ec2885cca1bc upstream.

Since AI lines could be selected at will (linux-3.11) the sending
and receiving ends of the FIFO does not agree about what step is used
for a line. It only works if the last lines are used, like 5,6,7,
and fails if ie 2,4,6 is selected in DT.

Signed-off-by: Jan Kardell <jan.kardell@telliq.com>
Tested-by: Zubair Lutfullah <zubair.lutfullah@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/ti_am335x_adc.c