Skip to content

Commit

Permalink
pwm: lp3943: Set pwm_chip can_sleep flag
Browse files Browse the repository at this point in the history
Read/write through I2C can sleep, thus set pwm_chip can_sleep flag.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
  • Loading branch information
AxelLin authored and thierryreding committed May 21, 2014
1 parent cf3a384 commit 00afb42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/pwm/pwm-lp3943.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ static int lp3943_pwm_probe(struct platform_device *pdev)
lp3943_pwm->chip.dev = &pdev->dev;
lp3943_pwm->chip.ops = &lp3943_pwm_ops;
lp3943_pwm->chip.npwm = LP3943_NUM_PWMS;
lp3943_pwm->chip.can_sleep = true;

platform_set_drvdata(pdev, lp3943_pwm);

Expand Down

0 comments on commit 00afb42

Please sign in to comment.