Skip to content
Commit 54b02347 authored by Axel Lin's avatar Axel Lin Committed by Thierry Reding
Browse files

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: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Acked-by: default avatarAlexandre BOURDIOL <alexandre.bourdiol@st.com>
Acked-by: default avatarPhilippe Begnic <philippe.begnic@st.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 3bdf8781
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment