linux-staging.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH] staging: fwserial: rearrange comment to avoid warning
@ 2022-01-19  8:41 Ajith P V
  2022-01-19 15:19 ` Randy Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: Ajith P V @ 2022-01-19  8:41 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging, linux-kernel, Ajith P V

fwserial.h comment contains word "bits" 2 times together.
The sentence required this however it produce warning.
Change the comment to make it proper.

Signed-off-by: Ajith P V <ajithpv.linux@gmail.com>
---
 drivers/staging/fwserial/fwserial.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/fwserial/fwserial.h b/drivers/staging/fwserial/fwserial.h
index 1d15f183e0fa..ae7cf84ceafc 100644
--- a/drivers/staging/fwserial/fwserial.h
+++ b/drivers/staging/fwserial/fwserial.h
@@ -203,7 +203,7 @@ struct fwconsole_ops {
  * @break_last: timestamp in jiffies from last emit_breaks
  * @hangup: work responsible for HUPing when carrier is dropped/lost
  * @mstatus: loose virtualization of LSR/MSR
- *         bits 15..0  correspond to TIOCM_* bits
+ *         bits 15..0  correspond to bits TIOCM_*
  *         bits 19..16 reserved for mctrl
  *         bit 20      OOB_TX_THROTTLE
  *	   bits 23..21 reserved
-- 
2.17.1


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

* Re: [PATCH] staging: fwserial: rearrange comment to avoid warning
  2022-01-19  8:41 [PATCH] staging: fwserial: rearrange comment to avoid warning Ajith P V
@ 2022-01-19 15:19 ` Randy Dunlap
  2022-01-19 17:57   ` Dan Carpenter
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2022-01-19 15:19 UTC (permalink / raw)
  To: Ajith P V, gregkh; +Cc: linux-staging, linux-kernel

Hi--

On 1/19/22 00:41, Ajith P V wrote:
> fwserial.h comment contains word "bits" 2 times together.
> The sentence required this however it produce warning.
> Change the comment to make it proper.

Is that a warning from checkpatch?
If so, it's OK to ignore something like that.
checkpatch isn't perfect and we know that.


or if someone wants to apply the patch, ok.

> Signed-off-by: Ajith P V <ajithpv.linux@gmail.com>
> ---
>  drivers/staging/fwserial/fwserial.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/fwserial/fwserial.h b/drivers/staging/fwserial/fwserial.h
> index 1d15f183e0fa..ae7cf84ceafc 100644
> --- a/drivers/staging/fwserial/fwserial.h
> +++ b/drivers/staging/fwserial/fwserial.h
> @@ -203,7 +203,7 @@ struct fwconsole_ops {
>   * @break_last: timestamp in jiffies from last emit_breaks
>   * @hangup: work responsible for HUPing when carrier is dropped/lost
>   * @mstatus: loose virtualization of LSR/MSR
> - *         bits 15..0  correspond to TIOCM_* bits
> + *         bits 15..0  correspond to bits TIOCM_*
>   *         bits 19..16 reserved for mctrl
>   *         bit 20      OOB_TX_THROTTLE
>   *	   bits 23..21 reserved

thanks.
-- 
~Randy

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

* Re: [PATCH] staging: fwserial: rearrange comment to avoid warning
  2022-01-19 15:19 ` Randy Dunlap
@ 2022-01-19 17:57   ` Dan Carpenter
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Carpenter @ 2022-01-19 17:57 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: Ajith P V, gregkh, linux-staging, linux-kernel

On Wed, Jan 19, 2022 at 07:19:24AM -0800, Randy Dunlap wrote:
> Hi--
> 
> On 1/19/22 00:41, Ajith P V wrote:
> > fwserial.h comment contains word "bits" 2 times together.
> > The sentence required this however it produce warning.
> > Change the comment to make it proper.
> 
> Is that a warning from checkpatch?

Yeah.  You're right.

WARNING: Possible repeated word: 'bits'
#207: FILE: drivers/staging/fwserial/fwserial.h:207:
+ *         bits 15..0  correspond to TIOCM_* bits
                                              ^^^^
+ *         bits 19..16 reserved for mctrl
            ^^^^
> If so, it's OK to ignore something like that.
> checkpatch isn't perfect and we know that.

Yep.  Checkpatch is not the boss of us.

regards,
dan carpenter


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

end of thread, other threads:[~2022-01-19 17:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-19  8:41 [PATCH] staging: fwserial: rearrange comment to avoid warning Ajith P V
2022-01-19 15:19 ` Randy Dunlap
2022-01-19 17:57   ` Dan Carpenter

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