* [PATCH] staging: atomisp: vf_1.0: fix open brace placement
@ 2026-03-23 9:30 Anushka Badhe
2026-03-23 9:52 ` Dan Carpenter
0 siblings, 1 reply; 5+ messages in thread
From: Anushka Badhe @ 2026-03-23 9:30 UTC (permalink / raw)
To: hansg, mchehab, gregkh
Cc: andy, sakari.ailus, linux-media, linux-staging, Anushka Badhe
Fix open brace placement on function definitions and control statements to comply with kernel coding style.
Signed-off-by: Anushka Badhe <anushkabadhe@gmail.com>
---
.../atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c b/drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c
index 3c675063c4a7..940b5767954c 100644
--- a/drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c
+++ b/drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c
@@ -49,7 +49,8 @@ int
sh_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;
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] staging: atomisp: vf_1.0: fix open brace placement
2026-03-23 9:30 [PATCH] staging: atomisp: vf_1.0: fix open brace placement Anushka Badhe
@ 2026-03-23 9:52 ` Dan Carpenter
2026-03-23 10:21 ` [PATCH v2] " Anushka Badhe
0 siblings, 1 reply; 5+ messages in thread
From: Dan Carpenter @ 2026-03-23 9:52 UTC (permalink / raw)
To: Anushka Badhe
Cc: hansg, mchehab, gregkh, andy, sakari.ailus, linux-media,
linux-staging
On Mon, Mar 23, 2026 at 03:00:24PM +0530, Anushka Badhe wrote:
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2] staging: atomisp: vf_1.0: fix open brace placement
2026-03-23 9:52 ` Dan Carpenter
@ 2026-03-23 10:21 ` Anushka Badhe
2026-03-23 10:45 ` Dan Carpenter
2026-03-23 11:09 ` Andy Shevchenko
0 siblings, 2 replies; 5+ messages in thread
From: Anushka Badhe @ 2026-03-23 10:21 UTC (permalink / raw)
To: dan.carpenter
Cc: andy, anushkabadhe, gregkh, hansg, linux-media, linux-staging,
mchehab, sakari.ailus
Fix open brace placement on function definitions and control statements
to comply with kernel coding style.
Signed-off-by: Anushka Badhe <anushkabadhe@gmail.com>
---
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(-)
diff --git a/drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c b/drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c
index 3c675063c4a7..940b5767954c 100644
--- a/drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c
+++ b/drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c
@@ -49,7 +49,8 @@ int
sh_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;
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH v2] staging: atomisp: vf_1.0: fix open brace placement
2026-03-23 10:21 ` [PATCH v2] " Anushka Badhe
@ 2026-03-23 10:45 ` Dan Carpenter
2026-03-23 11:09 ` Andy Shevchenko
1 sibling, 0 replies; 5+ messages in thread
From: Dan Carpenter @ 2026-03-23 10:45 UTC (permalink / raw)
To: Anushka Badhe
Cc: andy, gregkh, hansg, linux-media, linux-staging, mchehab,
sakari.ailus
On Mon, Mar 23, 2026 at 03:51:04PM +0530, Anushka Badhe wrote:
> Fix open brace placement on function definitions and control statements
> to comply with kernel coding style.
>
> Signed-off-by: Anushka Badhe <anushkabadhe@gmail.com>
> ---
> Changes in v2:
> - Wrapped commit message at 74 characters
> - Verified patch using checkpatch.pl
Thanks.
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
regards,
dan carpenter
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] staging: atomisp: vf_1.0: fix open brace placement
2026-03-23 10:21 ` [PATCH v2] " Anushka Badhe
2026-03-23 10:45 ` Dan Carpenter
@ 2026-03-23 11:09 ` Andy Shevchenko
1 sibling, 0 replies; 5+ messages in thread
From: Andy Shevchenko @ 2026-03-23 11:09 UTC (permalink / raw)
To: Anushka Badhe
Cc: dan.carpenter, andy, gregkh, hansg, linux-media, linux-staging,
mchehab, sakari.ailus
On Mon, Mar 23, 2026 at 03:51:04PM +0530, Anushka Badhe wrote:
> Fix open brace placement on function definitions and control statements
> to comply with kernel coding style.
...
> sh_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)
> +{
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.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-03-23 11:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-23 9:30 [PATCH] staging: atomisp: vf_1.0: fix open brace placement Anushka Badhe
2026-03-23 9:52 ` Dan Carpenter
2026-03-23 10:21 ` [PATCH v2] " Anushka Badhe
2026-03-23 10:45 ` Dan Carpenter
2026-03-23 11:09 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox