mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 13:48:06 +00:00
e74ead2249
The patches were generated from the RPi repo with the following command: git format-patch v6.6.36..rpi-6.6.y Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From cd92a9591833ea06d1f12391f6b027fcecf436a9 Mon Sep 17 00:00:00 2001
|
|
From: Ratchanan Srirattanamet <peathot@hotmail.com>
|
|
Date: Tue, 18 Jun 2024 15:44:13 +0700
|
|
Subject: [PATCH 1137/1145] pwm: gpio-pwm: follow pwm_apply_might_sleep()
|
|
rename
|
|
|
|
Fixes: 03286093be68("drivers/gpio: Add a driver that wraps the PWM API as a GPIO controller")
|
|
Signed-off-by: Ratchanan Srirattanamet <peathot@hotmail.com>
|
|
---
|
|
drivers/gpio/gpio-pwm.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/gpio/gpio-pwm.c
|
|
+++ b/drivers/gpio/gpio-pwm.c
|
|
@@ -34,7 +34,7 @@ static void pwm_gpio_set(struct gpio_chi
|
|
|
|
pwm_get_state(pwm_gpio->pwm[off], &state);
|
|
state.duty_cycle = val ? state.period : 0;
|
|
- pwm_apply_state(pwm_gpio->pwm[off], &state);
|
|
+ pwm_apply_might_sleep(pwm_gpio->pwm[off], &state);
|
|
}
|
|
|
|
static int pwm_gpio_parse_dt(struct pwm_gpio *pwm_gpio,
|
|
@@ -79,7 +79,7 @@ static int pwm_gpio_parse_dt(struct pwm_
|
|
pwm_init_state(pwm_gpio->pwm[i], &state);
|
|
|
|
state.duty_cycle = 0;
|
|
- pwm_apply_state(pwm_gpio->pwm[i], &state);
|
|
+ pwm_apply_might_sleep(pwm_gpio->pwm[i], &state);
|
|
}
|
|
|
|
pwm_gpio->gc.ngpio = num_gpios;
|