Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: atc260x: Fix missing active_discharge_on setting

Without active_discharge_on setting, the SWITCH1 discharge enable control
is always disabled. Fix it.

Fixes: 3b15ccac161a ("regulator: Add regulator driver for ATC260x PMICs")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20220403132235.123727-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Axel Lin and committed by
Mark Brown
2316f0fc 17049bf9

+1
+1
drivers/regulator/atc260x-regulator.c
··· 292 292 .bypass_mask = BIT(5), \ 293 293 .active_discharge_reg = ATC2603C_PMU_SWITCH_CTL, \ 294 294 .active_discharge_mask = BIT(1), \ 295 + .active_discharge_on = BIT(1), \ 295 296 .owner = THIS_MODULE, \ 296 297 } 297 298