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

regulator: fan53880: Fix vsel_mask setting for FAN53880_BUCK

According to the datasheet:
REGISTER DETAILS − 0x02 BUCK, BUCK_OUT is BIT0 ~ BIT7.

So vsel_mask for FAN53880_BUCK should be 0xFF.

Fixes: e6dea51e2d41 ("regulator: fan53880: Add initial support")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20210607142907.1599905-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Axel Lin and committed by
Mark Brown
2e11737a 0ea461b4

+1 -1
+1 -1
drivers/regulator/fan53880.c
··· 77 77 }, 78 78 .n_linear_ranges = 2, 79 79 .vsel_reg = FAN53880_BUCKVOUT, 80 - .vsel_mask = 0x7f, 80 + .vsel_mask = 0xff, 81 81 .enable_reg = FAN53880_ENABLE, 82 82 .enable_mask = 0x10, 83 83 .enable_time = 480,