Skip to content

Commit fae5e03

Browse files
arndbLee Jones
authored andcommitted
mfd: rk808: Fix RK818_IRQ_DISCHG_ILIM initializer
When building with -Woverride-init, we get a warning about an incorrect initializer: drivers/mfd/rk808.c:244:8: error: initialized field overwritten [-Werror=override-init] [RK818_IRQ_DISCHG_ILIM] = { This is clearly a mistake, as both RK818_IRQ_DISCHG_ILIM and RK818_IRQ_USB_OV are defined as '7', but they refer to different register bits. Changing RK818_IRQ_DISCHG_ILIM to 15 is consistent with how all other 14 interrupts are handled here, so I'm assuming this is what it should have been. Fixes: 2eedcbf ("mfd: rk808: Add RK818 support") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Andy Yan <andy.yan@rock-chips.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent b4feabe commit fae5e03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/mfd/rk808.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ enum rk818_reg {
244244
#define RK818_IRQ_CHG_TS1 12
245245
#define RK818_IRQ_TS2 13
246246
#define RK818_IRQ_CHG_CVTLIM 14
247-
#define RK818_IRQ_DISCHG_ILIM 7
247+
#define RK818_IRQ_DISCHG_ILIM 15
248248

249249
#define RK818_IRQ_VOUT_LO_MSK BIT(0)
250250
#define RK818_IRQ_VB_LO_MSK BIT(1)

0 commit comments

Comments
 (0)