Skip to content

Commit cd92a95

Browse files
authored
pwm: gpio-pwm: follow pwm_apply_might_sleep() rename
Fixes: 0328609("drivers/gpio: Add a driver that wraps the PWM API as a GPIO controller") Signed-off-by: Ratchanan Srirattanamet <[email protected]>
1 parent a1d3def commit cd92a95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpio/gpio-pwm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static void pwm_gpio_set(struct gpio_chip *gc, unsigned int off, int val)
3434

3535
pwm_get_state(pwm_gpio->pwm[off], &state);
3636
state.duty_cycle = val ? state.period : 0;
37-
pwm_apply_state(pwm_gpio->pwm[off], &state);
37+
pwm_apply_might_sleep(pwm_gpio->pwm[off], &state);
3838
}
3939

4040
static int pwm_gpio_parse_dt(struct pwm_gpio *pwm_gpio,
@@ -79,7 +79,7 @@ static int pwm_gpio_parse_dt(struct pwm_gpio *pwm_gpio,
7979
pwm_init_state(pwm_gpio->pwm[i], &state);
8080

8181
state.duty_cycle = 0;
82-
pwm_apply_state(pwm_gpio->pwm[i], &state);
82+
pwm_apply_might_sleep(pwm_gpio->pwm[i], &state);
8383
}
8484

8585
pwm_gpio->gc.ngpio = num_gpios;

0 commit comments

Comments
 (0)