linux-pwm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PWM: lp3943: Set pwm_chip can_sleep flag
@ 2014-04-15 16:38 Axel Lin
  2014-05-21 10:25 ` Thierry Reding
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2014-04-15 16:38 UTC (permalink / raw)
  To: Thierry Reding; +Cc: Milo Kim, linux-pwm

Read/write through I2C can sleep, thus set pwm_chip can_sleep flag.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/pwm/pwm-lp3943.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pwm/pwm-lp3943.c b/drivers/pwm/pwm-lp3943.c
index a40b9c3..2c39b0e 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);
 
-- 
1.8.3.2




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-21 10:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-15 16:38 [PATCH] PWM: lp3943: Set pwm_chip can_sleep flag Axel Lin
2014-05-21 10:25 ` Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).