mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
e4aa937ec7
commit
3f4d636408
|
@ -840,7 +840,7 @@ static int palmas_regulators_probe(struct platform_device *pdev)
|
|||
break;
|
||||
}
|
||||
|
||||
if ((id == PALMAS_REG_SMPS6) && (id == PALMAS_REG_SMPS8))
|
||||
if ((id == PALMAS_REG_SMPS6) || (id == PALMAS_REG_SMPS8))
|
||||
ramp_delay_support = true;
|
||||
|
||||
if (ramp_delay_support) {
|
||||
|
|
Loading…
Reference in New Issue