iio: mxs-lradc: fix iio channel map regression
commit03305e535cd5cdc1079b32909bf4b2dd67d46f7f
authorStefan Wahren <stefan.wahren@i2se.com>
Sat, 3 Jan 2015 20:34:12 +0000 (3 20:34 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sun, 1 Feb 2015 10:12:58 +0000 (1 10:12 +0000)
treed1112124aed6dc36041a1a6e2a71476efbd3945a
parent19e353f2b344ad86cea6ebbc0002e5f903480a90
iio: mxs-lradc: fix iio channel map regression

Since commit c8231a9af8147f8a ("iio: mxs-lradc: compute temperature
from channel 8 and 9") with the removal of adc channel 9 there is
no 1-1 mapping in the channel spec.

All hwmon channel values above 9 are accessible via there index minus
one. So add a hidden iio channel 9 to fix this issue.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Cc: Stable@vger.kernel.org
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/mxs-lradc.c