iio: mxs-lradc: add scale_available file to channels
authorHector Palacios <hector.palacios@digi.com>
Mon, 23 Dec 2013 17:48:00 +0000 (17:48 +0000)
committerJonathan Cameron <jic23@kernel.org>
Wed, 1 Jan 2014 14:25:18 +0000 (14:25 +0000)
commitd5acf5942bf6c7b7b73c7d40466a8478afe284fe
treeedb1916e3c5e3262aec5b1ad2c4100a60b6a5ff8
parentf6db68a405c795481e15c6c34c865f511b2a098e
iio: mxs-lradc: add scale_available file to channels

Adds in_voltageX_scale_available file for every channel to read
the different available scales.
There are two scales per channel:
 [0] = divider_by_two disabled (default)
 [1] = divider_by_two enabled
The scale is a struct made of integer and nano parts to build
a long decimal number.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/mxs-lradc.c