linux-samsung-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tty/serial: fix repeated words in comments
@ 2022-08-22 12:09 Jilin Yuan
  2022-08-22 12:17 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Jilin Yuan @ 2022-08-22 12:09 UTC (permalink / raw)
  To: gregkh, jirislaby, shawnguo, s.hauer, kernel, festevam,
	linux-imx, krzysztof.kozlowski, alim.akhtar
  Cc: linux-serial, linux-arm-kernel, linux-kernel, linux-samsung-soc,
	Jilin Yuan

 Delete the redundant word 'power'.
 Delete the redundant word 'long'.

Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com>
---
 drivers/tty/serial/imx.c         | 2 +-
 drivers/tty/serial/samsung_tty.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index 30edb35a6a15..c72e0dad3544 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -2069,7 +2069,7 @@ imx_uart_console_get_options(struct imx_port *sport, int *baud,
 		{	/*
 			 * The next code provides exact computation of
 			 *   baud_raw = round(((uartclk/16) * (ubir + 1)) / (ubmr + 1))
-			 * without need of float support or long long division,
+			 * without need of float support or long division,
 			 * which would be required to prevent 32bit arithmetic overflow
 			 */
 			unsigned int mul = ubir + 1;
diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c
index d5ca904def34..af799b79ba25 100644
--- a/drivers/tty/serial/samsung_tty.c
+++ b/drivers/tty/serial/samsung_tty.c
@@ -1353,7 +1353,7 @@ static int apple_s5l_serial_startup(struct uart_port *port)
 	return ret;
 }
 
-/* power power management control */
+/* power management control */
 
 static void s3c24xx_serial_pm(struct uart_port *port, unsigned int level,
 			      unsigned int old)
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tty/serial: fix repeated words in comments
  2022-08-22 12:09 [PATCH] tty/serial: fix repeated words in comments Jilin Yuan
@ 2022-08-22 12:17 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2022-08-22 12:17 UTC (permalink / raw)
  To: Jilin Yuan
  Cc: jirislaby, shawnguo, s.hauer, kernel, festevam, linux-imx,
	krzysztof.kozlowski, alim.akhtar, linux-serial, linux-arm-kernel,
	linux-kernel, linux-samsung-soc

On Mon, Aug 22, 2022 at 08:09:01PM +0800, Jilin Yuan wrote:
>  Delete the redundant word 'power'.
>  Delete the redundant word 'long'.
> 
> Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com>
> ---
>  drivers/tty/serial/imx.c         | 2 +-
>  drivers/tty/serial/samsung_tty.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
> index 30edb35a6a15..c72e0dad3544 100644
> --- a/drivers/tty/serial/imx.c
> +++ b/drivers/tty/serial/imx.c
> @@ -2069,7 +2069,7 @@ imx_uart_console_get_options(struct imx_port *sport, int *baud,
>  		{	/*
>  			 * The next code provides exact computation of
>  			 *   baud_raw = round(((uartclk/16) * (ubir + 1)) / (ubmr + 1))
> -			 * without need of float support or long long division,
> +			 * without need of float support or long division,

The original is correct here.

>  			 * which would be required to prevent 32bit arithmetic overflow
>  			 */
>  			unsigned int mul = ubir + 1;
> diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c
> index d5ca904def34..af799b79ba25 100644
> --- a/drivers/tty/serial/samsung_tty.c
> +++ b/drivers/tty/serial/samsung_tty.c
> @@ -1353,7 +1353,7 @@ static int apple_s5l_serial_startup(struct uart_port *port)
>  	return ret;
>  }
>  
> -/* power power management control */
> +/* power management control */

Are you sure this isn't also correct?

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-22 12:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-22 12:09 [PATCH] tty/serial: fix repeated words in comments Jilin Yuan
2022-08-22 12:17 ` Greg KH

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).