All of lore.kernel.org
 help / color / mirror / Atom feed
* Inline comments and the line length
@ 2021-10-19 11:36 Karolina Drobnik
  2021-10-19 12:00 ` [Outreachy kernel] " Praveen Kumar
  0 siblings, 1 reply; 2+ messages in thread
From: Karolina Drobnik @ 2021-10-19 11:36 UTC (permalink / raw)
  To: outreachy-kernel

Hi,

I'm working on tidying up the vt6655 driver and I can see warnings
about lines with inline comments that are too long, for example:

```
CHECK: line length of 129 exceeds 100 columns
#171: FILE: drivers/staging/vt6655/rf.c:171:
    0x08031B00 + (BY_AL7230_REG_LEN << 3) + IFREGCTL_REGW, /* init
0x080B1B00 => 0x080F1B00 for 3 wire control TxGain(D10) */ 
```

Is this something that should be addressed or is it ok to leave it as
it is?


Thanks,
Karolina



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

* Re: [Outreachy kernel] Inline comments and the line length
  2021-10-19 11:36 Inline comments and the line length Karolina Drobnik
@ 2021-10-19 12:00 ` Praveen Kumar
  0 siblings, 0 replies; 2+ messages in thread
From: Praveen Kumar @ 2021-10-19 12:00 UTC (permalink / raw)
  To: Karolina Drobnik, outreachy-kernel

On 19-10-2021 17:06, Karolina Drobnik wrote:
> Hi,
> 
> I'm working on tidying up the vt6655 driver and I can see warnings
> about lines with inline comments that are too long, for example:
> 
> ```
> CHECK: line length of 129 exceeds 100 columns
> #171: FILE: drivers/staging/vt6655/rf.c:171:
>     0x08031B00 + (BY_AL7230_REG_LEN << 3) + IFREGCTL_REGW, /* init
> 0x080B1B00 => 0x080F1B00 for 3 wire control TxGain(D10) */

I think you can put the comment above this statement.

/* init 0x080B1B00 => 0x080F1B00 for 3 wire control TxGain(D10) */
0x08031B00 + (BY_AL7230_REG_LEN << 3) + IFREGCTL_REGW,

However, I do see other entries are not in 80 column boundary.
So, lets wait for more comments.

> ```
> 
> Is this something that should be addressed or is it ok to leave it as
> it is?
> 
> 
> Thanks,
> Karolina
> 

Regards,

~Praveen.


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

end of thread, other threads:[~2021-10-19 11:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-19 11:36 Inline comments and the line length Karolina Drobnik
2021-10-19 12:00 ` [Outreachy kernel] " Praveen Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.