Skip to content

Commit

Permalink
pwm: Add can_sleep property to drivers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Florian Vaussard authored and Thierry Reding committed Jan 30, 2013
1 parent 6e69ab1 commit 2e2a0f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/pwm/pwm-twl-led.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 1 addition & 0 deletions drivers/pwm/pwm-twl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2e2a0f6

Please sign in to comment.