Skip to content

Commit f8b03e5

Browse files
seanyoungUwe Kleine-König
authored andcommitted
bus: ts-nbus: Use pwm_apply_might_sleep()
pwm_apply_state() is deprecated since commit c748a6d ("pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()"). Signed-off-by: Sean Young <sean@mess.org> Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Link: https://lore.kernel.org/r/20240614090829.560605-1-sean@mess.org Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
1 parent a96d365 commit f8b03e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/bus/ts-nbus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static int ts_nbus_probe(struct platform_device *pdev)
294294
state.duty_cycle = state.period;
295295
state.enabled = true;
296296

297-
ret = pwm_apply_state(pwm, &state);
297+
ret = pwm_apply_might_sleep(pwm, &state);
298298
if (ret < 0)
299299
return dev_err_probe(dev, ret, "failed to configure PWM\n");
300300

0 commit comments

Comments
 (0)