staging: media: atomisp: Whitespaces style cleanup in gdc.c

Clean 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>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
This commit is contained in:
Adrian Barnaś 2025-08-21 13:35:20 +00:00 committed by Sakari Ailus
parent 07e4753014
commit 3322fc4dca

View File

@ -26,9 +26,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 +34,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 +81,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;