* [PATCH] staging: bcm2835-camera: Modify function call formatting
@ 2025-03-22 13:56 Abraham Samuel Adekunle
2025-03-22 14:11 ` Julia Lawall
0 siblings, 1 reply; 4+ messages in thread
From: Abraham Samuel Adekunle @ 2025-03-22 13:56 UTC (permalink / raw)
To: outreachy, julia.lawall; +Cc: gregkh, linux-staging, linux-kernel
The line is a function call which ends with an opening parenthesis
thereby not adhering to the Linux kernel coding style.
Modify the function call to include parameters on the same line as
the opening parenthesis to improve readability and consistency while
adhering to Linux coding styles.
Reported by checkpatch:
CHECK: Lines should not end with '('
Signed-off-by: Abraham Samuel Adekunle <abrahamadekunle50@gmail.com>
---
.../vc04_services/bcm2835-camera/controls.c | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/drivers/staging/vc04_services/bcm2835-camera/controls.c b/drivers/staging/vc04_services/bcm2835-camera/controls.c
index 6bce45925bf1..e670226f1edf 100644
--- a/drivers/staging/vc04_services/bcm2835-camera/controls.c
+++ b/drivers/staging/vc04_services/bcm2835-camera/controls.c
@@ -533,17 +533,15 @@ static int ctrl_set_image_effect(struct bcm2835_mmal_dev *dev,
control = &dev->component[COMP_CAMERA]->control;
- ret = vchiq_mmal_port_parameter_set(
- dev->instance, control,
- MMAL_PARAMETER_IMAGE_EFFECT_PARAMETERS,
- &imagefx, sizeof(imagefx));
+ ret = vchiq_mmal_port_parameter_set(dev->instance, control,
+ MMAL_PARAMETER_IMAGE_EFFECT_PARAMETERS,
+ &imagefx, sizeof(imagefx));
if (ret)
goto exit;
- ret = vchiq_mmal_port_parameter_set(
- dev->instance, control,
- MMAL_PARAMETER_COLOUR_EFFECT,
- &dev->colourfx, sizeof(dev->colourfx));
+ ret = vchiq_mmal_port_parameter_set(dev->instance, control,
+ MMAL_PARAMETER_COLOUR_EFFECT,
+ &dev->colourfx, sizeof(dev->colourfx));
}
exit:
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] staging: bcm2835-camera: Modify function call formatting
2025-03-22 13:56 [PATCH] staging: bcm2835-camera: Modify function call formatting Abraham Samuel Adekunle
@ 2025-03-22 14:11 ` Julia Lawall
2025-03-22 14:54 ` Samuel Abraham
0 siblings, 1 reply; 4+ messages in thread
From: Julia Lawall @ 2025-03-22 14:11 UTC (permalink / raw)
To: Abraham Samuel Adekunle
Cc: outreachy, julia.lawall, gregkh, linux-staging, linux-kernel
On Sat, 22 Mar 2025, Abraham Samuel Adekunle wrote:
> The line is a function call which ends with an opening parenthesis
> thereby not adhering to the Linux kernel coding style.
>
> Modify the function call to include parameters on the same line as
> the opening parenthesis to improve readability and consistency while
> adhering to Linux coding styles.
>
> Reported by checkpatch:
>
> CHECK: Lines should not end with '('
Please check the get_maintainer script (see tutorial). It looks like
there are some other people who should receive patches on this driver.
julia
>
> Signed-off-by: Abraham Samuel Adekunle <abrahamadekunle50@gmail.com>
> ---
> .../vc04_services/bcm2835-camera/controls.c | 14 ++++++--------
> 1 file changed, 6 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/staging/vc04_services/bcm2835-camera/controls.c b/drivers/staging/vc04_services/bcm2835-camera/controls.c
> index 6bce45925bf1..e670226f1edf 100644
> --- a/drivers/staging/vc04_services/bcm2835-camera/controls.c
> +++ b/drivers/staging/vc04_services/bcm2835-camera/controls.c
> @@ -533,17 +533,15 @@ static int ctrl_set_image_effect(struct bcm2835_mmal_dev *dev,
>
> control = &dev->component[COMP_CAMERA]->control;
>
> - ret = vchiq_mmal_port_parameter_set(
> - dev->instance, control,
> - MMAL_PARAMETER_IMAGE_EFFECT_PARAMETERS,
> - &imagefx, sizeof(imagefx));
> + ret = vchiq_mmal_port_parameter_set(dev->instance, control,
> + MMAL_PARAMETER_IMAGE_EFFECT_PARAMETERS,
> + &imagefx, sizeof(imagefx));
> if (ret)
> goto exit;
>
> - ret = vchiq_mmal_port_parameter_set(
> - dev->instance, control,
> - MMAL_PARAMETER_COLOUR_EFFECT,
> - &dev->colourfx, sizeof(dev->colourfx));
> + ret = vchiq_mmal_port_parameter_set(dev->instance, control,
> + MMAL_PARAMETER_COLOUR_EFFECT,
> + &dev->colourfx, sizeof(dev->colourfx));
> }
>
> exit:
> --
> 2.34.1
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] staging: bcm2835-camera: Modify function call formatting
2025-03-22 14:11 ` Julia Lawall
@ 2025-03-22 14:54 ` Samuel Abraham
2025-03-22 14:58 ` Julia Lawall
0 siblings, 1 reply; 4+ messages in thread
From: Samuel Abraham @ 2025-03-22 14:54 UTC (permalink / raw)
To: Julia Lawall; +Cc: outreachy, gregkh, linux-staging, linux-kernel
On Sat, Mar 22, 2025 at 3:11 PM Julia Lawall <julia.lawall@inria.fr> wrote:
>
>
>
> On Sat, 22 Mar 2025, Abraham Samuel Adekunle wrote:
>
> > The line is a function call which ends with an opening parenthesis
> > thereby not adhering to the Linux kernel coding style.
> >
> > Modify the function call to include parameters on the same line as
> > the opening parenthesis to improve readability and consistency while
> > adhering to Linux coding styles.
> >
> > Reported by checkpatch:
> >
> > CHECK: Lines should not end with '('
>
> Please check the get_maintainer script (see tutorial). It looks like
> there are some other people who should receive patches on this driver.
>
> julia
>
Thank you very much for your review.
Please just to be sure, do I include the emails of the people I
initially sent the patch to or
I should only send the patch again to the other people I did not
include initially?
Adekunle.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] staging: bcm2835-camera: Modify function call formatting
2025-03-22 14:54 ` Samuel Abraham
@ 2025-03-22 14:58 ` Julia Lawall
0 siblings, 0 replies; 4+ messages in thread
From: Julia Lawall @ 2025-03-22 14:58 UTC (permalink / raw)
To: Samuel Abraham; +Cc: outreachy, gregkh, linux-staging, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1215 bytes --]
On Sat, 22 Mar 2025, Samuel Abraham wrote:
> On Sat, Mar 22, 2025 at 3:11 PM Julia Lawall <julia.lawall@inria.fr> wrote:
> >
> >
> >
> > On Sat, 22 Mar 2025, Abraham Samuel Adekunle wrote:
> >
> > > The line is a function call which ends with an opening parenthesis
> > > thereby not adhering to the Linux kernel coding style.
> > >
> > > Modify the function call to include parameters on the same line as
> > > the opening parenthesis to improve readability and consistency while
> > > adhering to Linux coding styles.
> > >
> > > Reported by checkpatch:
> > >
> > > CHECK: Lines should not end with '('
> >
> > Please check the get_maintainer script (see tutorial). It looks like
> > there are some other people who should receive patches on this driver.
> >
> > julia
> >
> Thank you very much for your review.
>
> Please just to be sure, do I include the emails of the people I
> initially sent the patch to or
> I should only send the patch again to the other people I did not
> include initially?
Send it toeveryone (ald recipients and new ones). You should write [PATCH
v2] instead of [PATCH]. Below the --- you can write v2: and an
explanation of what has changed, ie adding more recipients.
julia
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-03-22 14:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-22 13:56 [PATCH] staging: bcm2835-camera: Modify function call formatting Abraham Samuel Adekunle
2025-03-22 14:11 ` Julia Lawall
2025-03-22 14:54 ` Samuel Abraham
2025-03-22 14:58 ` Julia Lawall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox