OSDN Git Service

regulator: mt6358: Remove shift fields from struct mt6358_regulator_info
authorAxel Lin <axel.lin@ingics.com>
Tue, 29 Jun 2021 13:05:01 +0000 (21:05 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 11 Jul 2021 22:50:35 +0000 (23:50 +0100)
commitb99b7b79a7c57d5f1550b9a507521c791c5f92ed
tree213e683fa67f7e1c82411e5ab7b678fec52c66a8
parent3cb5992c34f7a8693009f969b7d73b6b181ccc8e
regulator: mt6358: Remove shift fields from struct mt6358_regulator_info

The shift setting can be calculated via the corresponding mask field,
so remove these shift fields.

The usage of da_vsel_mask is different from other mask defines because
current code does shift regval before mask with the da_vsel_mask.
Do proper shit to da_vsel_mask setting so we can calculate the shift.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20210629130503.2183574-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mt6358-regulator.c