.../pci/hive_isp_css_common/host/gdc.c | 33 +++++++------------ 1 file changed, 12 insertions(+), 21 deletions(-)
NFC: This patch cleans up coding style whitespace issues
in drivers/staging/media/atomisp/pci/hive_isp_css_common/host/gdc.c
Fixes include:
- removal of unnecessary line breaks
- correcting spacing around operators
- correcting spaces between types and names
Signed-off-by: Adrian Barnaś <abarnas@google.com>
---
.../pci/hive_isp_css_common/host/gdc.c | 33 +++++++------------
1 file changed, 12 insertions(+), 21 deletions(-)
diff --git a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/gdc.c b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/gdc.c
index 8bb78b4d7c677..69d709888c05a 100644
--- a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/gdc.c
+++ b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/gdc.c
@@ -14,10 +14,8 @@
/*
* Local function declarations
*/
-static inline void gdc_reg_store(
- const gdc_ID_t ID,
- const unsigned int reg,
- const hrt_data value);
+static inline void gdc_reg_store(const gdc_ID_t ID, const unsigned int reg,
+ const hrt_data value);
#ifndef __INLINE_GDC__
#include "gdc_private.h"
@@ -26,9 +24,7 @@ static inline void gdc_reg_store(
/*
* Exported function implementations
*/
-void gdc_lut_store(
- const gdc_ID_t ID,
- const int data[4][HRT_GDC_N])
+void gdc_lut_store(const gdc_ID_t ID, const int data[4][HRT_GDC_N])
{
unsigned int i, lut_offset = HRT_GDC_LUT_IDX;
@@ -36,15 +32,13 @@ void gdc_lut_store(
assert(HRT_GDC_LUT_COEFF_OFFSET <= (4 * sizeof(hrt_data)));
for (i = 0; i < HRT_GDC_N; i++) {
- hrt_data entry_0 = data[0][i] & HRT_GDC_BCI_COEF_MASK;
- hrt_data entry_1 = data[1][i] & HRT_GDC_BCI_COEF_MASK;
- hrt_data entry_2 = data[2][i] & HRT_GDC_BCI_COEF_MASK;
- hrt_data entry_3 = data[3][i] & HRT_GDC_BCI_COEF_MASK;
+ hrt_data entry_0 = data[0][i] & HRT_GDC_BCI_COEF_MASK;
+ hrt_data entry_1 = data[1][i] & HRT_GDC_BCI_COEF_MASK;
+ hrt_data entry_2 = data[2][i] & HRT_GDC_BCI_COEF_MASK;
+ hrt_data entry_3 = data[3][i] & HRT_GDC_BCI_COEF_MASK;
- hrt_data word_0 = entry_0 |
- (entry_1 << HRT_GDC_LUT_COEFF_OFFSET);
- hrt_data word_1 = entry_2 |
- (entry_3 << HRT_GDC_LUT_COEFF_OFFSET);
+ hrt_data word_0 = entry_0 | (entry_1 << HRT_GDC_LUT_COEFF_OFFSET);
+ hrt_data word_1 = entry_2 | (entry_3 << HRT_GDC_LUT_COEFF_OFFSET);
gdc_reg_store(ID, lut_offset++, word_0);
gdc_reg_store(ID, lut_offset++, word_1);
@@ -85,8 +79,7 @@ void gdc_lut_convert_to_isp_format(const int in_lut[4][HRT_GDC_N],
}
}
-int gdc_get_unity(
- const gdc_ID_t ID)
+int gdc_get_unity(const gdc_ID_t ID)
{
assert(ID < N_GDC_ID);
(void)ID;
@@ -96,10 +89,8 @@ int gdc_get_unity(
/*
* Local function implementations
*/
-static inline void gdc_reg_store(
- const gdc_ID_t ID,
- const unsigned int reg,
- const hrt_data value)
+static inline void gdc_reg_store(const gdc_ID_t ID, const unsigned int reg,
+ const hrt_data value)
{
ia_css_device_store_uint32(GDC_BASE[ID] + reg * sizeof(hrt_data), value);
return;
--
2.51.0.rc1.167.g924127e9c0-goog
On Wed, Aug 20, 2025 at 12:45:19PM +0000, Adrian Barnaś wrote: > NFC: This patch cleans up coding style whitespace issues > in drivers/staging/media/atomisp/pci/hive_isp_css_common/host/gdc.c > > Fixes include: > - removal of unnecessary line breaks > - correcting spacing around operators > - correcting spaces between types and names ... > -static inline void gdc_reg_store( > - const gdc_ID_t ID, > - const unsigned int reg, > - const hrt_data value); > +static inline void gdc_reg_store(const gdc_ID_t ID, const unsigned int reg, > + const hrt_data value); Can you rather refactor code to get rid of the forward declaration? ... > +static inline void gdc_reg_store(const gdc_ID_t ID, const unsigned int reg, This still is wrong, shouldn't be any tabs here. > + const hrt_data value) -- With Best Regards, Andy Shevchenko
On Wed, Aug 20, 2025 at 12:45:19PM +0000, Adrian Barnaś wrote: > NFC: This patch cleans up coding style whitespace issues > in drivers/staging/media/atomisp/pci/hive_isp_css_common/host/gdc.c What does "NFC:" mean? And take a look at the kernel documentation, it recommends not using stuff like "This patch", but write it in an imperitive mode: Clean up coding style whitespace issues in... hope this helps, greg k-h
On Wed, Aug 20, 2025 at 12:45:19PM +0000, Adrian Barnaś wrote: > NFC: This patch cleans up coding style whitespace issues What does "NFC" mean in this context? I only know it as the networking protocol. > in drivers/staging/media/atomisp/pci/hive_isp_css_common/host/gdc.c > > Fixes include: > - removal of unnecessary line breaks > - correcting spacing around operators > - correcting spaces between types and names > > Signed-off-by: Adrian Barnaś <abarnas@google.com> > --- [ snip ] > @@ -85,8 +79,7 @@ void gdc_lut_convert_to_isp_format(const int in_lut[4][HRT_GDC_N], > } > } > > -int gdc_get_unity( > - const gdc_ID_t ID) > +int gdc_get_unity(const gdc_ID_t ID) > { > assert(ID < N_GDC_ID); > (void)ID; > @@ -96,10 +89,8 @@ int gdc_get_unity( > /* > * Local function implementations > */ > -static inline void gdc_reg_store( > - const gdc_ID_t ID, > - const unsigned int reg, > - const hrt_data value) > +static inline void gdc_reg_store(const gdc_ID_t ID, const unsigned int reg, ^^^^^^^ Replace this tab with a space. > + const hrt_data value) > { > ia_css_device_store_uint32(GDC_BASE[ID] + reg * sizeof(hrt_data), value); > return; regards, dan carpenter
© 2016 - 2025 Red Hat, Inc.