Skip to contentSkip to conversation

pwm: stm32: Fix a typo

PATCH In review Andrew Kreimer 2 participants 2 messages Sep 12, 2024 – Sep 13, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pwm: stm32: Fix a typo

Fix a typo in comments.

---
 drivers/pwm/pwm-stm32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pwm/pwm-stm32.c +1 -1
index f85eb41cb084..eb24054f9729 100644
@@ -222,7 +222,7 @@ static int stm32_pwm_capture(struct pwm_chip *chip, struct pwm_device *pwm,
 
 		scale = max_arr / min(max_arr, raw_prd);
 	} else {
-		scale = priv->max_arr; /* bellow resolution, use max scale */
+		scale = priv->max_arr; /* below resolution, use max scale */
 	}
 
 	if (psc && scale > 1) {
Signature · 1 line
2.46.0
#1 lore raw
Quoted 13 lines · Andrew Kreimer

Fix a typo in comments.

---
 drivers/pwm/pwm-stm32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pwm/pwm-stm32.c +0 -0
index f85eb41cb084..eb24054f9729 100644

drivers/pwm/pwm-stm32.c static int stm32_pwm_capture(struct pwm_chip *chip, struct pwm_device *pwm, · line 228

Quoted 8 lines
drivers/pwm/pwm-stm32.c +1 -1
@@ -222,7 +222,7 @@ static int stm32_pwm_capture(struct pwm_chip *chip, struct pwm_device *pwm,
 
 		scale = max_arr / min(max_arr, raw_prd);
 	} else {
-		scale = priv->max_arr; /* bellow resolution, use max scale */
+		scale = priv->max_arr; /* below resolution, use max scale */
 	}
 
 	if (psc && scale > 1) {

Oh, that's an old one introduced in commit d66ffb91c374 ("pwm: stm32:
Improve capture by tuning counter prescaler") in 2018.

Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next .

Best regards and thanks
Uwe