regulator: axp20x: Fix poly-phase bit offset for AXP803 DCDC5/6
authorChen-Yu Tsai <wens@csie.org>
Fri, 29 Sep 2017 03:25:08 +0000 (11:25 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 4 Oct 2017 10:48:21 +0000 (11:48 +0100)
commit986e7b7e4991a5d3abab26f97a671512e09e4417
tree27fd67cc20b3c72fb39e8e0e709ce978bb4eab3c
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
regulator: axp20x: Fix poly-phase bit offset for AXP803 DCDC5/6

The bit offset used to check if DCDC5 and DCDC6 are tied together in
poly-phase output is wrong. It was checking against a reserved bit,
which is always false.

In reality, neither the reference design layout nor actually produced
boards tie these two buck regulators together. But we should still
fix it, just in case.

Fixes: 1dbe0ccb0631 ("regulator: axp20x-regulator: add support for AXP803")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Tested-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/axp20x-regulator.c