[PATCH v2] drivers/tty/moxa.c: Fix spelling mistake in comment

shanmukh.iyer@gmail.com posted 1 patch 4 months ago
drivers/tty/moxa.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
[PATCH v2] drivers/tty/moxa.c: Fix spelling mistake in comment
Posted by shanmukh.iyer@gmail.com 4 months ago
From: Shanmukh Iyer <shanmukh.iyer@gmail.com>

Corrected some spelling and grammar in the comments, such as:
- Units (baud -> baud rate)
- Sentence flow
- typos

This is part of my first patch to get familiar with
the kernel's patch contribution workflow.

Signed-off-by: Shanmukh Iyer <shanmukh.iyer@gmail.com>
---
 drivers/tty/moxa.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/drivers/tty/moxa.c b/drivers/tty/moxa.c
index 329b30fac8fc..bf86f24e5655 100644
--- a/drivers/tty/moxa.c
+++ b/drivers/tty/moxa.c
@@ -1627,10 +1627,11 @@ static void MoxaPortFlushData(struct moxa_port *port, int mode)
  *           long baud          : baud rate (50 - 115200)
  *
  *           return:    0       : this port is invalid or baud < 50
- *                      50 - 115200 : the real baud rate set to the port, if
- *                                    the argument baud is large than maximun
- *                                    available baud rate, the real setting
- *                                    baud rate will be the maximun baud rate.
+ *                      50 - 115200 : the real baud rate is set to the port, if
+ *                                    the argument baud rate is larger than 
+ *                                    the maximum available baud rate, the 
+ *                                    real setting baud rate will be the 
+ *                                    maximum baud rate.
  *
  *
  *      Function 12:    Configure the port.
-- 
2.34.1
Re: [PATCH v2] drivers/tty/moxa.c: Fix spelling mistake in comment
Posted by Jiri Slaby 4 months ago
On 10. 06. 25, 1:34, shanmukh.iyer@gmail.com wrote:
> From: Shanmukh Iyer <shanmukh.iyer@gmail.com>
> 
> Corrected some spelling and grammar in the comments, such as:
> - Units (baud -> baud rate)
> - Sentence flow
> - typos
> 
> This is part of my first patch to get familiar with
> the kernel's patch contribution workflow.
> 
> Signed-off-by: Shanmukh Iyer <shanmukh.iyer@gmail.com>
> ---

v2 changelog missing here now.

>   drivers/tty/moxa.c | 9 +++++----
>   1 file changed, 5 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/tty/moxa.c b/drivers/tty/moxa.c
> index 329b30fac8fc..bf86f24e5655 100644
> --- a/drivers/tty/moxa.c
> +++ b/drivers/tty/moxa.c
> @@ -1627,10 +1627,11 @@ static void MoxaPortFlushData(struct moxa_port *port, int mode)
>    *           long baud          : baud rate (50 - 115200)
>    *
>    *           return:    0       : this port is invalid or baud < 50
> - *                      50 - 115200 : the real baud rate set to the port, if
> - *                                    the argument baud is large than maximun
> - *                                    available baud rate, the real setting
> - *                                    baud rate will be the maximun baud rate.
> + *                      50 - 115200 : the real baud rate is set to the port, if

the new "is" looks superfluous.

> + *                                    the argument baud rate is larger than
> + *                                    the maximum available baud rate, the
> + *                                    real setting baud rate will be the
> + *                                    maximum baud rate.
>    *
>    *
>    *      Function 12:    Configure the port.


-- 
js
suse labs