From: Hector Palacios Date: Mon, 23 Dec 2013 17:48:00 +0000 (+0000) Subject: iio: mxs-lradc: add scale attribute to channels X-Git-Tag: v3.14-rc1~150^2~139^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6db68a405c795481e15c6c34c865f511b2a098e;p=pandora-kernel.git iio: mxs-lradc: add scale attribute to channels Some LRADC channels have fixed pre-dividers and all have an optional divider by two which allows a maximum input voltage of VDDIO - 50mV. This patch - adds the scaling info flag to all channels - grabs the max reference voltage per channel (where the fixed pre-dividers apply) - allows to read the scaling attribute (computed from the Vref) Signed-off-by: Hector Palacios . Signed-off-by: Alexandre Belloni Acked-by: Marek Vasut Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed