aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-twl.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-02-26 12:34:29 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-26 12:34:29 -0500
commit3eb05225ee8efb81fe50558f5f9d94e7477ade8f (patch)
tree40692236718c808455f1fcdfbc1c6de6a274eb36 /drivers/pwm/pwm-twl.c
parented5dc2372dba46e0ecd08791b1a0399d313e5cff (diff)
parent30f786170352b8264bc7b61c2482713e54accec8 (diff)
Merge tag 'for-3.9-rc1' of git://gitorious.org/linux-pwm/linux-pwm
Pull PWM changes from Thierry Reding: "A new driver has been added to support the PWM mode of the timer counter blocks found on Atmel AT91 SoCs. The VT8500 driver now supports changing the PWM signal polarity and the TI drivers (EHRPWM and ECAP) gained suspend and resume functionality. User drivers can now query the core for whether access to a PWM device will sleep (if the PWM chip is on a slow bus such as I2C or SPI). The pwm-backlight driver now handles the backlight BL_CORE_FBBLANK state in addition to the FB layer's blanking states. To round things off, a few fixes and cleanups are also included" * tag 'for-3.9-rc1' of git://gitorious.org/linux-pwm/linux-pwm: pwm: twl: Use to_twl() instead of container_of() pwm: tegra: assume CONFIG_OF pwm_backlight: Validate dft_brightness in main probe function pwm: Export pwm_{set,get}_chip_data() pwm: Make Kconfig entries more consistent pwm: Add can_sleep property to drivers pwm: Add pwm_can_sleep() as exported API to users pwm-backlight: handle BL_CORE_FBBLANK state pwm: pwm-tiecap: Low power sleep support pwm: pwm-tiehrpwm: Low power sleep support pwm: pwm-tiehrpwm: Update the clock handling of pwm-tiehrpwm driver pwm: vt8500: Add polarity support pwm: vt8500: Register write busy test performed incorrectly pwm: atmel: add Timer Counter Block PWM driver
Diffstat (limited to 'drivers/pwm/pwm-twl.c')
-rw-r--r--drivers/pwm/pwm-twl.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/pwm/pwm-twl.c b/drivers/pwm/pwm-twl.c
index e65db95d5e59..bf3fda294223 100644
--- a/drivers/pwm/pwm-twl.c
+++ b/drivers/pwm/pwm-twl.c
@@ -200,8 +200,7 @@ out:
200 200
201static void twl4030_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) 201static void twl4030_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm)
202{ 202{
203 struct twl_pwm_chip *twl = container_of(chip, struct twl_pwm_chip, 203 struct twl_pwm_chip *twl = to_twl(chip);
204 chip);
205 int ret; 204 int ret;
206 u8 val, mask; 205 u8 val, mask;
207 206
@@ -231,8 +230,7 @@ out:
231 230
232static int twl6030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) 231static int twl6030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm)
233{ 232{
234 struct twl_pwm_chip *twl = container_of(chip, struct twl_pwm_chip, 233 struct twl_pwm_chip *twl = to_twl(chip);
235 chip);
236 int ret; 234 int ret;
237 u8 val; 235 u8 val;
238 236
@@ -255,8 +253,7 @@ out:
255 253
256static void twl6030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) 254static void twl6030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm)
257{ 255{
258 struct twl_pwm_chip *twl = container_of(chip, struct twl_pwm_chip, 256 struct twl_pwm_chip *twl = to_twl(chip);
259 chip);
260 int ret; 257 int ret;
261 u8 val; 258 u8 val;
262 259
@@ -315,6 +312,7 @@ static int twl_pwm_probe(struct platform_device *pdev)
315 twl->chip.dev = &pdev->dev; 312 twl->chip.dev = &pdev->dev;
316 twl->chip.base = -1; 313 twl->chip.base = -1;
317 twl->chip.npwm = 2; 314 twl->chip.npwm = 2;
315 twl->chip.can_sleep = true;
318 316
319 mutex_init(&twl->mutex); 317 mutex_init(&twl->mutex);
320 318