From: Ajit Pal Singh Date: Thu, 29 Jan 2015 09:04:43 +0000 (+0530) Subject: pwm: sti: Maintain a bitmap of configured devices X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~47^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd264b6a6559caa74579b5afca11379ddde92dca;p=pandora-kernel.git pwm: sti: Maintain a bitmap of configured devices This patch introduces a bitmap which is used to keep track of the pwm channels which have been configured in a pwm chip. The method used earlier to find the number of configured channels, was to count the pwmdevices with PWMF_REQUESTED field set and period value configured. This was not correct and failed when of_pwm_get()/pwm_get() and then pwm_config() was used. Signed-off-by: Ajit Pal Singh Signed-off-by: Thierry Reding --- Reading git-diff-tree failed