]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: atomisp: Fix block comment coding style in sh_css_param_shading.c
authorMahad Ibrahim <mahad.ibrahim.dev@gmail.com>
Thu, 1 Jan 2026 16:41:17 +0000 (21:41 +0500)
committerSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 20 May 2026 08:29:30 +0000 (11:29 +0300)
Fix checkpatch.pl warnings in sh_css_param_shading.c regarding block
comment formatting.

The warning was:
- Block comments use a trailing */ on a separate line

This change also moves text from the first line of block comments to
subsequent lines to adhere to the standard Linux kernel coding style.

Signed-off-by: Mahad Ibrahim <mahad.ibrahim.dev@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
drivers/staging/media/atomisp/pci/sh_css_param_shading.c

index 9105334c71b1fd17abb34296aef7c0faf1c9070f..083ac5713b6db5509844d38c449cca322a22b598 100644 (file)
@@ -20,7 +20,8 @@
 
 #include "platform_support.h"
 
-/* Bilinear interpolation on shading tables:
+/*
+ * Bilinear interpolation on shading tables:
  * For each target point T, we calculate the 4 surrounding source points:
  * ul (upper left), ur (upper right), ll (lower left) and lr (lower right).
  * We then calculate the distances from the T to the source points: x0, x1,
@@ -116,8 +117,10 @@ crop_and_interpolate(unsigned int cropped_width,
                 */
                ty = out_start_row + i * out_cell_size;
 
-               /* calculate closest source points in shading table and
-                  make sure they fall within the table */
+               /*
+                * calculate closest source points in shading table and
+                * make sure they fall within the table
+                */
                src_y0 = ty / (int)in_cell_size;
                if (in_cell_size < out_cell_size)
                        src_y1 = (ty + out_cell_size) / in_cell_size;
@@ -173,7 +176,8 @@ crop_and_interpolate(unsigned int cropped_width,
                        dx0 = tx - sx0;
                        dx1 = sx1 - tx;
                        divx = sx1 - sx0;
-                       /* if we're at the edge, we just use the closest
+                       /*
+                        * if we're at the edge, we just use the closest
                         * point still in the grid. We make up for the divider
                         * in this case by setting the distance to
                         * out_cell_size, since it's actually 0.
@@ -291,8 +295,10 @@ prepare_shading_table(const struct ia_css_shading_table *in_table,
        input_width  = min(input_width,  in_table->sensor_width);
        input_height = min(input_height, in_table->sensor_height);
 
-       /* This prepare_shading_table() function is called only in legacy API (not in new API).
-          Then, the legacy shading table width and height should be used. */
+       /*
+        * This prepare_shading_table() function is called only in legacy API (not in new API).
+        * Then, the legacy shading table width and height should be used.
+        */
        table_width  = binary->sctbl_width_per_color;
        table_height = binary->sctbl_height;