mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: Jonathan Bergh <bergh.jonathan@gmail.com>
Cc: mchehab@kernel.org, linux-media@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: media: atomisp: Fix formatting issues and minor code issue
Date: Mon, 26 Feb 2024 11:48:38 +0100	[thread overview]
Message-ID: <182c1e88-0bc2-48a8-89d8-5b0e4b68c6b9@redhat.com> (raw)
In-Reply-To: <20240225155359.41435-1-bergh.jonathan@gmail.com>

Hi Jonathan,

On 2/25/24 16:53, Jonathan Bergh wrote:
> This patch fixes the following code style and formatting issues:
>  * Ensure multiline block comments are correctly formatted
>  * Remove extra braces not required for single line conditional statements
> 
> Signed-off-by: Jonathan Bergh <bergh.jonathan@gmail.com>


Thanks, patch looks good to me:

Reviewed-by: Hans de Goede <hdegoede@redhat.com>

(I'll apply this to my atomisp-branch the next time I'm working on that branch).

Regards,

Hans




> ---
>  drivers/staging/media/atomisp/pci/atomisp_drvfs.c         | 2 +-
>  drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c | 7 +++----
>  drivers/staging/media/atomisp/pci/atomisp_subdev.c        | 3 ++-
>  3 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/staging/media/atomisp/pci/atomisp_drvfs.c b/drivers/staging/media/atomisp/pci/atomisp_drvfs.c
> index 1df534bf54d3..8ef25d2f8b87 100644
> --- a/drivers/staging/media/atomisp/pci/atomisp_drvfs.c
> +++ b/drivers/staging/media/atomisp/pci/atomisp_drvfs.c
> @@ -34,7 +34,7 @@
>   *        bit 0: binary list
>   *        bit 1: running binary
>   *        bit 2: memory statistic
> -*/
> + */
>  struct _iunit_debug {
>  	struct device_driver	*drv;
>  	struct atomisp_device	*isp;
> diff --git a/drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c b/drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c
> index 139ad7ad1dcf..804ffff245f3 100644
> --- a/drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c
> +++ b/drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c
> @@ -1416,13 +1416,12 @@ static int gmin_get_config_var(struct device *maindev,
>  	if (efi_rt_services_supported(EFI_RT_SUPPORTED_GET_VARIABLE))
>  		status = efi.get_variable(var16, &GMIN_CFG_VAR_EFI_GUID, NULL,
>  					  (unsigned long *)out_len, out);
> -	if (status == EFI_SUCCESS) {
> +	if (status == EFI_SUCCESS)
>  		dev_info(maindev, "found EFI entry for '%s'\n", var8);
> -	} else if (is_gmin) {
> +	else if (is_gmin)
>  		dev_info(maindev, "Failed to find EFI gmin variable %s\n", var8);
> -	} else {
> +	else
>  		dev_info(maindev, "Failed to find EFI variable %s\n", var8);
> -	}
>  
>  	return ret;
>  }
> diff --git a/drivers/staging/media/atomisp/pci/atomisp_subdev.c b/drivers/staging/media/atomisp/pci/atomisp_subdev.c
> index a87fc74159e2..f8efaef2c055 100644
> --- a/drivers/staging/media/atomisp/pci/atomisp_subdev.c
> +++ b/drivers/staging/media/atomisp/pci/atomisp_subdev.c
> @@ -394,7 +394,8 @@ int atomisp_subdev_set_selection(struct v4l2_subdev *sd,
>  			 * (of the desired captured image before
>  			 * scaling, or 1 / 6 of what we get from the
>  			 * sensor) in both width and height. Remove
> -			 * it. */
> +			 * it.
> +			 */
>  			crop[pad]->width = roundup(crop[pad]->width * 5 / 6,
>  						   ATOM_ISP_STEP_WIDTH);
>  			crop[pad]->height = roundup(crop[pad]->height * 5 / 6,


      reply	other threads:[~2024-02-26 10:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-25 15:53 Jonathan Bergh
2024-02-26 10:48 ` Hans de Goede [this message]

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=182c1e88-0bc2-48a8-89d8-5b0e4b68c6b9@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=bergh.jonathan@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    /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

all inboxes | Powered by JetHome®