staging: media: atomisp: Fix block comment formatting
Subsystems (4)
PATCH 1/1 staging: media: atomisp: Fix block comment formatting
Align the multiline comment describing the MIPI frame memory layout with the kernel coding style.
Move the opening comment delimiter to its own line and align the subsequent lines consistently. This is a formatting-only change and does not affect driver functionality.
--- .../staging/media/atomisp/pci/sh_css_mipi.c | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-)
drivers/staging/media/atomisp/pci/sh_css_mipi.c +16 -15
@@ -130,21 +130,22 @@ ia_css_mipi_frame_calculate_size(const unsigned int width, even_line_bytes = odd_line_bytes; } -/* a frame represented in memory: ()- optional; data - payload words. -* addr 0 1 2 3 4 5 6 7: -* first SOF (SOL) PACK_H data data data data data -* data data data data data data data data -* ... -* data data 0 0 0 0 0 0 -* second (EOL) (SOL) PACK_H data data data data data -* data data data data data data data data -* ... -* data data 0 0 0 0 0 0 -* ... -* last (EOL) EOF 0 0 0 0 0 0 -* -* Embedded lines are regular lines stored before the first and after -* payload lines. +/* +* a frame represented in memory: () - optional; data - payload words. +* addr 0 1 2 3 4 5 6 7: +* first SOF (SOL) PACK_H data data data data data +* data data data data data data data data +* ... +* data data 0 0 0 0 0 0 +* second (EOL) (SOL) PACK_H data data data data data +* data data data data data data data data +* ... +* data data 0 0 0 0 0 0 +* ... +* last (EOL) EOF 0 0 0 0 0 0 +* +* Embedded lines are regular lines stored before the first and after +* payload lines. */ words_per_odd_line = (odd_line_bytes +3 ) >>2 ;
Signature · 1 line
2.56.0
PATCH v2 1/1 staging: media: atomisp: Clarify MIPI frame layout comment
Clarify the description of the MIPI frame memory layout by explaining the meaning of optional fields and payload words.
Leave the frame layout diagram unchanged to preserve its existing representation.
--- drivers/staging/media/atomisp/pci/sh_css_mipi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/media/atomisp/pci/sh_css_mipi.c +2 -1
@@ -130,7 +130,8 @@ ia_css_mipi_frame_calculate_size(const unsigned int width, even_line_bytes = odd_line_bytes; } -/* a frame represented in memory: ()- optional; data - payload words. +/* Frame representation in memory: () denotes optional fields; +* data denotes payload words. * addr 0 1 2 3 4 5 6 7: * first SOF (SOL) PACK_H data data data data data * data data data data data data data data
Signature · 1 line
2.56.0
Re: [PATCH v2] staging: media: atomisp: Clarify MIPI frame layout comment
Quoted 8 lines · Lame Morupisi
Clarify the description of the MIPI frame memory layout by explaining the meaning of optional fields and payload words.
Leave the frame layout diagram unchanged to preserve its existing representation.
Signed-off-by Lame Morupisi <[email protected]>---
Why are you sending a v2?
https://staticthinking.wordpress.com/2022/07/27/how-to-send-a-v2-patch/
The lines are not aligned now.
regards,
dan carpenter
Re: [PATCH v2] staging: media: atomisp: Clarify MIPI frame layout comment
In reply to Lame MorupisiQuoted 6 lines · Lame Morupisi
Clarify the description of the MIPI frame memory layout by explaining the meaning of optional fields and payload words.
Leave the frame layout diagram unchanged to preserve its existing representation.
...
drivers/staging/media/atomisp/pci/sh_css_mipi.c ia_css_mipi_frame_calculate_size(const unsigned int width, · line 134
Quoted 3 lines
drivers/staging/media/atomisp/pci/sh_css_mipi.c +2
-1-/* a frame represented in memory: ()- optional; data - payload words. +/* Frame representation in memory: () denotes optional fields; +* data denotes payload words.
This uses the wrong multi-line comment style.
...
And as Dan said, you missed changelog to explain. (But in any case neither v1 nor v2 is good to go.)
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 7 lines · Lame Morupisi
Align the multiline comment describing the MIPI frame memory layout with the kernel coding style.
Move the opening comment delimiter to its own line and align the subsequent lines consistently. This is a formatting-only change and does not affect driver functionality.
It's most likely one of the very first patches to LKML by you. See my comments below.
...
drivers/staging/media/atomisp/pci/sh_css_mipi.c ia_css_mipi_frame_calculate_size(const unsigned int width, · line 134
Quoted 2 lines
drivers/staging/media/atomisp/pci/sh_css_mipi.c +2
-0+/* +* a frame represented in memory: () - optional; data - payload words.
While at it, make it consistent with the requirement for multi-line comments, id est start the sentence with a capital letter.
Quoted 15 lines
drivers/staging/media/atomisp/pci/sh_css_mipi.c +14
-0+* addr 0 1 2 3 4 5 6 7: +* first SOF (SOL) PACK_H data data data data data +* data data data data data data data data +* ... +* data data 0 0 0 0 0 0 +* second (EOL) (SOL) PACK_H data data data data data +* data data data data data data data data +* ... +* data data 0 0 0 0 0 0 +* ... +* last (EOL) EOF 0 0 0 0 0 0 +* +* Embedded lines are regular lines stored before the first and after +* payload lines. */
Signature · 2 lines
With Best Regards, Andy Shevchenko