Skip to content

Commit

Permalink
pwm: stm32: Fix a typo
Browse files Browse the repository at this point in the history
Fix a typo in comments.

Reported-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Kreimer <algonell@gmail.com>
Link: https://lore.kernel.org/r/20240912124944.43284-1-algonell@gmail.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
  • Loading branch information
Andrew Kreimer authored and Uwe Kleine-König committed Sep 16, 2024
1 parent a4cf667 commit d242fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pwm/pwm-stm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d242fea

Please sign in to comment.