]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Fri, 10 May 2013 11:10:48 +0000 (12:10 +0100)
commita583410babc56784498354afb8432fd5d99abb90
tree884a434c70288b4804647bda5e72c5e2d75f4d68
parentbee546581424b5514ec6a034fb83fd4e95b804da
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