regulator: gpio-regulator: Fix logical error in for() loop
authorLee Jones <lee.jones@linaro.org>
Mon, 10 Dec 2012 08:55:52 +0000 (08:55 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 10 Dec 2012 14:12:41 +0000 (23:12 +0900)
The cond-statement of this particular for() loop will always be
true as long as at least one voltage-shifting GPIO is present.
If it wasn't for the break below, we'd be stuck in a forever loop.
This patch inserts the correct cond-statement into the statement.

Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

No differences found