regulator: palmas: Fix incorrect condition
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 8 May 2013 10:39:06 +0000 (16:09 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 30 May 2013 10:55:46 +0000 (11:55 +0100)
commit3f4d6364084ca0525591836eba4a59f04bb85c68
tree034120298a2487edc38e6fdfcf586599501b61ac
parente4aa937ec75df0eea0bee03bffa3303ad36c986b
regulator: palmas: Fix incorrect condition

Since 'id' cannot take two values at the same time, the condition
should probably be an OR (||) instead of AND (&&).

Introduced by commit 28d1e8cd67 ("regulator: palma: add ramp delay
support through regulator constraints").

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/palmas-regulator.c