Skip to content

Commit d10ff07

Browse files
ChiYuan Huangsre
authored andcommitted
power: supply: rt9471: Fix wrong WDT function regfield declaration
Fix F_WDT and F_WDT_RST wrong regfield declaration. Fixes: 4a1a5f6 ("power: supply: rt9471: Add Richtek RT9471 charger driver") Reported-by: Lucas Tsai <[email protected]> Signed-off-by: ChiYuan Huang <[email protected]> Link: https://lore.kernel.org/r/f862e23f220612f01fabb6d8e76cfaf63756c22b.1727252762.git.cy_huang@richtek.com Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 5d12106 commit d10ff07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/power/supply/rt9471.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ struct rt9471_chip {
153153
};
154154

155155
static const struct reg_field rt9471_reg_fields[F_MAX_FIELDS] = {
156-
[F_WDT] = REG_FIELD(RT9471_REG_TOP, 0, 0),
157-
[F_WDT_RST] = REG_FIELD(RT9471_REG_TOP, 1, 1),
156+
[F_WDT] = REG_FIELD(RT9471_REG_TOP, 0, 1),
157+
[F_WDT_RST] = REG_FIELD(RT9471_REG_TOP, 2, 2),
158158
[F_CHG_EN] = REG_FIELD(RT9471_REG_FUNC, 0, 0),
159159
[F_HZ] = REG_FIELD(RT9471_REG_FUNC, 5, 5),
160160
[F_BATFET_DIS] = REG_FIELD(RT9471_REG_FUNC, 7, 7),

0 commit comments

Comments
 (0)