Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

bus: ts-nbus: Use pwm_apply_might_sleep()

pwm_apply_state() is deprecated since commit c748a6d77c06a ("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>

authored by

Sean Young and committed by
Uwe Kleine-König
f8b03e5c a96d3659

+1 -1
+1 -1
drivers/bus/ts-nbus.c
··· 294 294 state.duty_cycle = state.period; 295 295 state.enabled = true; 296 296 297 - ret = pwm_apply_state(pwm, &state); 297 + ret = pwm_apply_might_sleep(pwm, &state); 298 298 if (ret < 0) 299 299 return dev_err_probe(dev, ret, "failed to configure PWM\n"); 300 300