From: Julia Lawall <julia.lawall@inria.fr>
To: Abraham Samuel Adekunle <abrahamadekunle50@gmail.com>
Cc: outreachy@lists.linux.dev, julia.lawall@inria.fr,
gregkh@linuxfoundation.org, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: bcm2835-camera: Modify function call formatting
Date: Sat, 22 Mar 2025 15:11:02 +0100 (CET) [thread overview]
Message-ID: <alpine.DEB.2.22.394.2503221510230.12345@hadrien> (raw)
In-Reply-To: <Z97Bl9RyFRGZUXNM@HP-650>
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
>
>
next prev parent reply other threads:[~2025-03-22 14:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-22 13:56 [PATCH] staging: bcm2835-camera: Modify function call formatting Abraham Samuel Adekunle
2025-03-22 14:11 ` Julia Lawall [this message]
2025-03-22 14:54 ` Samuel Abraham
2025-03-22 14:58 ` Julia Lawall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.22.394.2503221510230.12345@hadrien \
--to=julia.lawall@inria.fr \
--cc=abrahamadekunle50@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=outreachy@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox