staging: atomisp: vf_1.0: fix open brace placement
Subsystems (4)
PATCH 1/1 staging: atomisp: vf_1.0: fix open brace placement
Fix open brace placement on function definitions and control statements to comply with kernel coding style.
--- .../atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c +5 -4
@@ -49,7 +49,8 @@ intsh_css_vf_downscale_log2 ( const struct ia_css_frame_info *out_info, const struct ia_css_frame_info *vf_info, - unsigned int *downscale_log2) { + unsigned int *downscale_log2) +{ unsigned int ds_log2 = 0;unsigned int out_width;
@@ -65,8 +66,7 @@ sh_css_vf_downscale_log2(* test for the height since the vmem buffers only put restrictions on * the width of a line, not on the number of lines in a frame. */ -while (out_width >= vf_info->res.width) - { +while (out_width >= vf_info->res.width) { ds_log2++; out_width /=2 ; }
@@ -86,7 +86,8 @@ configure_kernel(const struct ia_css_frame_info *out_info, const struct ia_css_frame_info *vf_info, unsigned int *downscale_log2, - struct ia_css_vf_configuration *config) { + struct ia_css_vf_configuration *config) +{ int err;unsigned int vf_log_ds =0 ;
Signature · 1 line
2.43.0
Quoted 2 lines · Anushka Badhe
Fix open brace placement on function definitions and control statements to comply with kernel coding style.
Line wrap your commit message at 74 characters. Also run your patches through checkpatch.pl. (Ignore the space character warning since that was there in the original code).
regards,
dan carpenter
PATCH v2 1/1 staging: atomisp: vf_1.0: fix open brace placement
Fix open brace placement on function definitions and control statements to comply with kernel coding style.
---
Changes in v2:
- Wrapped commit message at 74 characters
- Verified patch using checkpatch.pl
.../atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c +5 -4
@@ -49,7 +49,8 @@ intsh_css_vf_downscale_log2 ( const struct ia_css_frame_info *out_info, const struct ia_css_frame_info *vf_info, - unsigned int *downscale_log2) { + unsigned int *downscale_log2) +{ unsigned int ds_log2 = 0;unsigned int out_width;
@@ -65,8 +66,7 @@ sh_css_vf_downscale_log2(* test for the height since the vmem buffers only put restrictions on * the width of a line, not on the number of lines in a frame. */ -while (out_width >= vf_info->res.width) - { +while (out_width >= vf_info->res.width) { ds_log2++; out_width /=2 ; }
@@ -86,7 +86,8 @@ configure_kernel(const struct ia_css_frame_info *out_info, const struct ia_css_frame_info *vf_info, unsigned int *downscale_log2, - struct ia_css_vf_configuration *config) { + struct ia_css_vf_configuration *config) +{ int err;unsigned int vf_log_ds =0 ;
Signature · 1 line
2.43.0
Quoted 8 lines · Anushka Badhe
Fix open brace placement on function definitions and control statements to comply with kernel coding style.
Signed-off-by Anushka Badhe <[email protected]>---
Changes in v2:
- Wrapped commit message at 74 characters
- Verified patch using checkpatch.pl
Thanks.
regards,
dan carpenter
Quoted 2 lines · Anushka Badhe
Fix open brace placement on function definitions and control statements to comply with kernel coding style.
...
drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c int · line 53
Quoted 6 lines
sh_css_vf_downscale_log2(
const structia_css_frame_info*out_info,
const structia_css_frame_info*vf_info,drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c +2
-1- unsigned int *downscale_log2) { + unsigned int *downscale_log2) +{
The indentation of the entire function is broken and needs to be fixed. And IIRC there were already 3+ patches on the same, so please try instead helping with reviewing existing stream on AtomISP patches.
Signature · 2 lines
With Best Regards, Andy Shevchenko