* [PATCH] pwm: stm32: Fix a typo
@ 2024-09-12 12:49 Andrew Kreimer
2024-09-13 7:49 ` Uwe Kleine-König
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Kreimer @ 2024-09-12 12:49 UTC (permalink / raw)
To: Fabrice Gasnier, Uwe Kleine-König, Maxime Coquelin,
Alexandre Torgue
Cc: linux-pwm, linux-stm32, linux-arm-kernel, linux-kernel,
kernel-janitors, Andrew Kreimer, Matthew Wilcox
Fix a typo in comments.
Reported-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Kreimer <algonell@gmail.com>
---
drivers/pwm/pwm-stm32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pwm/pwm-stm32.c b/drivers/pwm/pwm-stm32.c
index f85eb41cb084..eb24054f9729 100644
--- a/drivers/pwm/pwm-stm32.c
+++ b/drivers/pwm/pwm-stm32.c
@@ -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) {
--
2.46.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] pwm: stm32: Fix a typo
2024-09-12 12:49 [PATCH] pwm: stm32: Fix a typo Andrew Kreimer
@ 2024-09-13 7:49 ` Uwe Kleine-König
0 siblings, 0 replies; 2+ messages in thread
From: Uwe Kleine-König @ 2024-09-13 7:49 UTC (permalink / raw)
To: Andrew Kreimer
Cc: Fabrice Gasnier, Maxime Coquelin, Alexandre Torgue, linux-pwm,
linux-stm32, linux-arm-kernel, linux-kernel, kernel-janitors,
Matthew Wilcox
[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]
On Thu, Sep 12, 2024 at 03:49:34PM +0300, Andrew Kreimer wrote:
> Fix a typo in comments.
>
> Reported-by: Matthew Wilcox <willy@infradead.org>
> Signed-off-by: Andrew Kreimer <algonell@gmail.com>
> ---
> drivers/pwm/pwm-stm32.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pwm/pwm-stm32.c b/drivers/pwm/pwm-stm32.c
> index f85eb41cb084..eb24054f9729 100644
> --- a/drivers/pwm/pwm-stm32.c
> +++ b/drivers/pwm/pwm-stm32.c
> @@ -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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-13 7:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-12 12:49 [PATCH] pwm: stm32: Fix a typo Andrew Kreimer
2024-09-13 7:49 ` Uwe Kleine-König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).