]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
media: staging: media: atomisp: Fix formatting issues and minor code issue
authorJonathan Bergh <bergh.jonathan@gmail.com>
Sun, 25 Feb 2024 15:53:59 +0000 (15:53 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 26 Apr 2024 09:11:30 +0000 (10:11 +0100)
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

Link: https://lore.kernel.org/r/20240225155359.41435-1-bergh.jonathan@gmail.com
Signed-off-by: Jonathan Bergh <bergh.jonathan@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c
drivers/staging/media/atomisp/pci/atomisp_subdev.c

index 139ad7ad1dcf6ea397db8e4cdba642121aa57662..804ffff245f34cddcafbb3ec86c0e9636f447213 100644 (file)
@@ -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;
 }
index 3b62341acc812b91625397e94faba62f34d77db1..c36aae69d6f7696e00030abfd36311dfea0fb60d 100644 (file)
@@ -362,11 +362,12 @@ int atomisp_subdev_set_selection(struct v4l2_subdev *sd,
 
                if (isp_sd->params.video_dis_en &&
                    isp_sd->run_mode->val == ATOMISP_RUN_MODE_VIDEO) {
-                       /* This resolution contains 20 % of DVS slack
+                       /*
+                        * This resolution contains 20 % of DVS slack
                         * (of the desired captured image before
                         * scaling, or 1 / 6 of what we get from the
-                        * sensor) in both width and height. Remove
-                        * it. */
+                        * sensor) in both width and height. Remove it.
+                        */
                        crop[pad]->width = roundup(crop[pad]->width * 5 / 6,
                                                   ATOM_ISP_STEP_WIDTH);
                        crop[pad]->height = roundup(crop[pad]->height * 5 / 6,