diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-04-16 00:38:10 +0800 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2014-05-21 12:09:09 +0200 |
commit | 00afb429fc447e9adc30828949ea85e654411562 (patch) | |
tree | c5c05c0b7a5d5cd7b7760b3e3fa9b5ab259abeee /drivers/pwm | |
parent | cf3a384b3484200f45d185b2e3c7b71fd4511ea7 (diff) | |
download | linux-00afb429fc447e9adc30828949ea85e654411562.tar.bz2 |
pwm: lp3943: Set pwm_chip can_sleep flag
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>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/pwm-lp3943.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-lp3943.c b/drivers/pwm/pwm-lp3943.c index a40b9c34e9ff..2c39b0e50fa4 100644 --- a/drivers/pwm/pwm-lp3943.c +++ b/drivers/pwm/pwm-lp3943.c @@ -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); |