]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: axp20x: Fix misleading use of negation
authorOndrej Jirman <megous@megous.com>
Sat, 22 Feb 2020 23:56:34 +0000 (00:56 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 24 Feb 2020 13:41:35 +0000 (13:41 +0000)
commitcf3fd126cdb95fe31503a12ac3fae8d9143beb44
tree2c155f8f1035ca2305d2c3eb408cc72d8278414f
parent16018750fa844612a77427d746baf383ac460017
regulator: axp20x: Fix misleading use of negation

It works incidentally, because AXP20X_DCDC2_LDO3_V_RAMP_DCDC2_EN
is non-zero, but the false branch value really should be just 0.

Signed-off-by: Ondrej Jirman <megous@megous.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Link: https://lore.kernel.org/r/20200222235634.243805-1-megous@megous.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/axp20x-regulator.c