aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorStephan Gerhold <[email protected]>2020-01-17 21:40:36 +0000
committerDmitry Torokhov <[email protected]>2020-01-21 04:40:04 +0000
commit996d5d5f89a558a3608a46e73ccd1b99f1b1d058 (patch)
tree9e17275b03fc5c10f76cbcc89eb867131f00e921 /fs/btrfs/dev-replace.c
parentInput: keyspan-remote - fix control-message timeouts (diff)
downloadkernel-996d5d5f89a558a3608a46e73ccd1b99f1b1d058.tar.gz
kernel-996d5d5f89a558a3608a46e73ccd1b99f1b1d058.zip
Input: pm8xxx-vib - fix handling of separate enable register
Setting the vibrator enable_mask is not implemented correctly: For regmap_update_bits(map, reg, mask, val) we give in either regs->enable_mask or 0 (= no-op) as mask and "val" as value. But "val" actually refers to the vibrator voltage control register, which has nothing to do with the enable_mask. So we usually end up doing nothing when we really wanted to enable the vibrator. We want to set or clear the enable_mask (to enable/disable the vibrator). Therefore, change the call to always modify the enable_mask and set the bits only if we want to enable the vibrator. Fixes: d4c7c5c96c92 ("Input: pm8xxx-vib - handle separate enable register") Signed-off-by: Stephan Gerhold <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions