* Re: [PATCH] staging: atomisp: isp: xnr 3.0 fix whitespace issue
2026-05-02 8:25 [PATCH] staging: atomisp: isp: xnr 3.0 fix whitespace issue Shirin Kaul
@ 2026-05-02 8:33 ` Andy Shevchenko
2026-05-03 10:54 ` [PATCH v2] " Shirin Kaul
1 sibling, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2026-05-02 8:33 UTC (permalink / raw)
To: Shirin Kaul
Cc: linux-staging, gregkh, hansg, mchehab, sakari.ailus, andy,
linux-media, linux-kernel
On Sat, May 02, 2026 at 08:25:16AM +0000, Shirin Kaul wrote:
> Fix spaces by replacing them with tabs in function calls to comply
> with kernel coding style.
...
> static const s16 a[XNR3_LOOK_UP_TABLE_POINTS] = {
> -7213, -5580, -4371, -3421, -2722, -2159, -6950, -5585,
> - -4529, -3697, -3010, -2485, -2070, -1727, -1428, 0
> - };
> + -4529, -3697, -3010, -2485, -2070, -1727, -1428, 0
Leave trailing comma, as it's not a sign that this array has a terminator.
> + };
Wrong indentation.
...
> void
> ia_css_xnr3_encode(
> - struct sh_css_isp_xnr3_params *to,
> - const struct ia_css_xnr3_config *from,
> - unsigned int size)
> + struct sh_css_isp_xnr3_params *to,
> + const struct ia_css_xnr3_config *from,
> + unsigned int size)
It's half-baked solution. Moreover there were handful of patches (better than
this one) to address the same, please, study preexisting work (linux-media
mailing list archives is for your help).
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH v2] staging: atomisp: isp: xnr 3.0 fix whitespace issue
2026-05-02 8:25 [PATCH] staging: atomisp: isp: xnr 3.0 fix whitespace issue Shirin Kaul
2026-05-02 8:33 ` Andy Shevchenko
@ 2026-05-03 10:54 ` Shirin Kaul
2026-05-04 8:45 ` Andy Shevchenko
1 sibling, 1 reply; 4+ messages in thread
From: Shirin Kaul @ 2026-05-03 10:54 UTC (permalink / raw)
To: linux-staging
Cc: gregkh, hansg, mchehab, sakari.ailus, andy, linux-media,
linux-kernel, Shirin Kaul
Fix spaces by replacing them with tabs in function calls to comply
with kernel coding style with checkpatch.pl.
v2:
- Added trailing commas in arrays
- Fixed indentation
Signed-off-by: Shirin Kaul <shirin.kaul11@gmail.com>
---
.../kernels/xnr/xnr_3.0/ia_css_xnr3.host.c | 29 +++++++++----------
1 file changed, 13 insertions(+), 16 deletions(-)
diff --git a/drivers/staging/media/atomisp/pci/isp/kernels/xnr/xnr_3.0/ia_css_xnr3.host.c b/drivers/staging/media/atomisp/pci/isp/kernels/xnr/xnr_3.0/ia_css_xnr3.host.c
index e90dea58215b..a3ee8827c44d 100644
--- a/drivers/staging/media/atomisp/pci/isp/kernels/xnr/xnr_3.0/ia_css_xnr3.host.c
+++ b/drivers/staging/media/atomisp/pci/isp/kernels/xnr/xnr_3.0/ia_css_xnr3.host.c
@@ -29,21 +29,21 @@
static const s16 x[XNR3_LOOK_UP_TABLE_POINTS] = {
1024, 1164, 1320, 1492, 1680, 1884, 2108, 2352,
- 2616, 2900, 3208, 3540, 3896, 4276, 4684, 5120
+ 2616, 2900, 3208, 3540, 3896, 4276, 4684, 5120,
};
static const s16 a[XNR3_LOOK_UP_TABLE_POINTS] = {
-7213, -5580, -4371, -3421, -2722, -2159, -6950, -5585,
- -4529, -3697, -3010, -2485, -2070, -1727, -1428, 0
- };
+ -4529, -3697, -3010, -2485, -2070, -1727, -1428, 0,
+};
static const s16 b[XNR3_LOOK_UP_TABLE_POINTS] = {
4096, 3603, 3178, 2811, 2497, 2226, 1990, 1783,
- 1603, 1446, 1307, 1185, 1077, 981, 895, 819
+ 1603, 1446, 1307, 1185, 1077, 981, 895, 819,
};
static const s16 c[XNR3_LOOK_UP_TABLE_POINTS] = {
- 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
};
/*
@@ -124,10 +124,9 @@ compute_blending(int strength)
}
void
-ia_css_xnr3_encode(
- struct sh_css_isp_xnr3_params *to,
- const struct ia_css_xnr3_config *from,
- unsigned int size)
+ia_css_xnr3_encode(struct sh_css_isp_xnr3_params *to,
+ const struct ia_css_xnr3_config *from,
+ unsigned int size)
{
int kernel_size = XNR_FILTER_SIZE;
int adjust_factor = roundup_pow_of_two(kernel_size);
@@ -179,10 +178,9 @@ ia_css_xnr3_encode(
* VMEM Encode Function to translate UV parameters from userspace into ISP space
*/
void
-ia_css_xnr3_vmem_encode(
- struct sh_css_isp_xnr3_vmem_params *to,
- const struct ia_css_xnr3_config *from,
- unsigned int size)
+ia_css_xnr3_vmem_encode(struct sh_css_isp_xnr3_vmem_params *to,
+ const struct ia_css_xnr3_config *from,
+ unsigned int size)
{
unsigned int i, j, base;
const unsigned int total_blocks = 4;
@@ -231,9 +229,8 @@ ia_css_xnr3_vmem_encode(
/* Dummy Function added as the tool expects it*/
void
-ia_css_xnr3_debug_dtrace(
- const struct ia_css_xnr3_config *config,
- unsigned int level)
+ia_css_xnr3_debug_dtrace(const struct ia_css_xnr3_config *config,
+ unsigned int level)
{
(void)config;
(void)level;
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread