summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-04-09 21:19:54 +0800
committerThierry Reding <thierry.reding@gmail.com>2014-05-21 12:29:58 +0200
commit54b02347d71802a010ceace3dd25ed3774ba8a1e (patch)
tree15d3a234708434767ef9005508da5ea85a328f3a /crypto
parent3bdf878102110c916dd6a9fb0df9ecfde93a3c83 (diff)
downloadop-kernel-dev-54b02347d71802a010ceace3dd25ed3774ba8a1e.zip
op-kernel-dev-54b02347d71802a010ceace3dd25ed3774ba8a1e.tar.gz
pwm: ab8500: Fix wrong value shift for disable/enable PWM
Current code only works when pdev->id is 1. Fix it by passing correct bit values to abx500_mask_and_set_register_interruptible(). Having DISABLE_PWM/ENABLE_PWM does not make the code more readable because the bit values depend on pdev->id. Thus drop the DISABLE_PWM and ENABLE_PWM defines. This patch also removes an unnecessary return in ab8500_pwm_disable(). Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Alexandre BOURDIOL <alexandre.bourdiol@st.com> Acked-by: Philippe Begnic <philippe.begnic@st.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud