diff options
author | Florian Vaussard <florian.vaussard@epfl.ch> | 2013-01-28 15:00:58 +0100 |
---|---|---|
committer | Thierry Reding <thierry.reding@avionic-design.de> | 2013-01-30 09:12:51 +0100 |
commit | 2e2a0f6ed1637e8cc4c33850bdf51a418d516157 (patch) | |
tree | e06b795c9d4127b8819b47703a4146ec1572ae68 /drivers/pwm | |
parent | 6e69ab1361c44e3ee1398158b56d114b1aef8179 (diff) | |
download | linux-2e2a0f6ed1637e8cc4c33850bdf51a418d516157.tar.gz linux-2e2a0f6ed1637e8cc4c33850bdf51a418d516157.tar.bz2 linux-2e2a0f6ed1637e8cc4c33850bdf51a418d516157.zip |
pwm: Add can_sleep property to drivers
Calls to PWM drivers connected through I2C can sleep.
Use the new can_sleep property.
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Florian Vaussard <florian.vaussard@epfl.ch>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/pwm-twl-led.c | 1 | ||||
-rw-r--r-- | drivers/pwm/pwm-twl.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-twl-led.c b/drivers/pwm/pwm-twl-led.c index 9dfa0f3eca30..83e25d45d640 100644 --- a/drivers/pwm/pwm-twl-led.c +++ b/drivers/pwm/pwm-twl-led.c @@ -300,6 +300,7 @@ static int twl_pwmled_probe(struct platform_device *pdev) twl->chip.dev = &pdev->dev; twl->chip.base = -1; + twl->chip.can_sleep = true; mutex_init(&twl->mutex); diff --git a/drivers/pwm/pwm-twl.c b/drivers/pwm/pwm-twl.c index e65db95d5e59..f783efcd14bb 100644 --- a/drivers/pwm/pwm-twl.c +++ b/drivers/pwm/pwm-twl.c @@ -315,6 +315,7 @@ static int twl_pwm_probe(struct platform_device *pdev) twl->chip.dev = &pdev->dev; twl->chip.base = -1; twl->chip.npwm = 2; + twl->chip.can_sleep = true; mutex_init(&twl->mutex); |