On Thu Jan 1 21:41:17 2026 +0500, Mahad Ibrahim wrote:
> 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 <[email protected]>
> Signed-off-by: Sakari Ailus <[email protected]>

Patch committed.

Thanks,
Sakari Ailus

 .../staging/media/atomisp/pci/sh_css_param_shading.c   | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

---

diff --git a/drivers/staging/media/atomisp/pci/sh_css_param_shading.c 
b/drivers/staging/media/atomisp/pci/sh_css_param_shading.c
index 9105334c71b1..083ac5713b6d 100644
--- a/drivers/staging/media/atomisp/pci/sh_css_param_shading.c
+++ b/drivers/staging/media/atomisp/pci/sh_css_param_shading.c
@@ -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;
 
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to