mfd: Use the value of the final spin when reading the AUXADC
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 1 Mar 2009 19:11:58 +0000 (20:11 +0100)
committerSamuel Ortiz <samuel@sortiz.org>
Sat, 4 Apr 2009 22:32:24 +0000 (00:32 +0200)
commitf3df0b7533ccad7bb3ef25383fea9c990b0033a2
treefcf1bd6c65836b115dde16ac2afd53d763fc03f4
parent3446d4bb93b4d8c7c5b667dd0271669f012fb166
mfd: Use the value of the final spin when reading the AUXADC

Reverse the order of the tests for loop exit so we use a valid value
before we time out.  Vanishingly unlikely to happen since we retry for
several times the expected conversion time.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
drivers/mfd/wm8350-core.c