Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00afb429 authored by Axel Lin's avatar Axel Lin Committed by Thierry Reding
Browse files

pwm: lp3943: Set pwm_chip can_sleep flag



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

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent cf3a384b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);