regulator: tps65217: invalid if check
authorAlan Cox <alan@linux.intel.com>
Mon, 2 Jul 2012 17:54:17 +0000 (18:54 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 2 Jul 2012 17:26:04 +0000 (18:26 +0100)
commit1a5d39d0644fa01e659ee42b5ec47abbd7db3afb
treeb22189d061a6178db4030259f149e479dd02652e
parent1e12dfc9681fed46fbc9fffc6aba9613908c1213
regulator: tps65217: invalid if check

This permits the setting of bogus values because the invalidity check is
itself invalid.

Reported-by: dcb314@hotmail.com
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/tps65217-regulator.c