gpadc: read sample result in one loop
authorBin Yang <bin.yang@intel.com>
Thu, 6 Oct 2011 15:18:32 +0000 (16:18 +0100)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 21:17:23 +0000 (13:17 -0800)
commit51787ea4c610a12b80096d76b56d8883e808747d
tree4cc151a5b9f16080ecba7b0ee763507e49538797
parent424e7e9f10fac751c712d2e3e5d15b4e91450909
gpadc: read sample result in one loop

RR bit is used to inform HW for sample result read.
it needs to hold the RR bit for all channels result read.

this patch moves the lines to set/clear RR bit outside the loop.

Change-Id: I6e810d03eab6f59d16315fb38ae81864dc37bd02
Signed-off-by: Bin Yang <bin.yang@intel.com>
drivers/hwmon/intel_mid_gpadc.c