summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/net/qcom,ipa.yaml
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2021-06-19 15:34:23 +0300
committerMark Brown <broonie@kernel.org>2021-06-21 15:07:46 +0300
commit57c045bc727001c43b6a65adb0418aa7b3e6dbd0 (patch)
treed77c4c8f43a7e630b6310891739f0fa9a47109a8 /Documentation/devicetree/bindings/net/qcom,ipa.yaml
parent01c5741b82969d096ac0870d997b7d2f5a5fe970 (diff)
downloadlinux-57c045bc727001c43b6a65adb0418aa7b3e6dbd0.tar.xz
regulator: hi6421v600: Fix setting idle mode
commit db27f8294cd7 changed eco_mode << (ffs(sreg->eco_mode_mask) - 1) to sreg->eco_mode_mask << (ffs(sreg->eco_mode_mask) - 1) which is wrong. Fix it by simply set val = sreg->eco_mode_mask. In additional, sreg->eco_mode_mask can be 0 (LDO3, LDO33, LDO34). Return -EINVAL if idle mode is not supported when sreg->eco_mode_mask is 0. While at it, also use unsigned int for reg_val/val which is the expected type for regmap_read and regmap_update_bits. Fixes: db27f8294cd7 ("staging: regulator: hi6421v600-regulator: use shorter names for OF properties") Signed-off-by: Axel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210619123423.4091429-1-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/net/qcom,ipa.yaml')
0 files changed, 0 insertions, 0 deletions