pwm: sti: Ensure same period values for all channels
authorAjit Pal Singh <ajitpal.singh@st.com>
Mon, 14 Jul 2014 14:33:30 +0000 (15:33 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 8 Aug 2014 11:12:45 +0000 (13:12 +0200)
commit5165166e8a1551fb80afa5fdaad6f2ea34d92285
tree353cdc0d267e7f438c5023706827c773194feb44
parentbf9cc80b6c3ec2754b570d377ed7f7e2ec96868a
pwm: sti: Ensure same period values for all channels

ST PWM IP shares the same clock prescaler across all the PWM
channels. Hence configuration requests which change the period
will affect all the channels. Do not allow period changes which
will stomp period settings of the already configured channels.

Signed-off-by: Ajit Pal Singh <ajitpal.singh@st.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-sti.c