Re: [PATCH v2 09/11] pwm: sti: Ensure same period values for all channels

2014-08-07 Thread Thierry Reding
On Mon, Jul 14, 2014 at 03:33:30PM +0100, Lee Jones wrote: [...] > +/* Calculate the number of PWM devices configured with a period. */ > +unsigned int sti_pwm_count_configured(struct pwm_chip *chip) This should've been static, which is what made sparse complain. I've fixed it up. Thierry pgpLP

[PATCH v2 09/11] pwm: sti: Ensure same period values for all channels

2014-07-14 Thread Lee Jones
From: Ajit Pal Singh 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