Skip to content

Commit 0f2bd5a

Browse files
Enrique Isidoro Vazquez Ramosdlezcano
authored andcommitted
thermal/drivers/amlogic: Rename Uptat to uptat to follow kernel coding style
The variable Uptat uses CamelCase, which violates the kernel's coding style that mandates snake_case for variable names. This is a purely cosmetic change with no functional impact. Compilation tested with: - checkpatch.pl --strict passed (no new warnings/errors). Signed-off-by: Enrique Isidoro Vazquez Ramos <kike.correo99.f@gmail.com> Link: https://lore.kernel.org/r/Z-MEZNMLUmj75uxN@debian.debian Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent 592ebd7 commit 0f2bd5a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/thermal/amlogic_thermal.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
*
88
* Register value to celsius temperature formulas:
99
* Read_Val m * U
10-
* U = ---------, Uptat = ---------
10+
* U = ---------, uptat = ---------
1111
* 2^16 1 + n * U
1212
*
13-
* Temperature = A * ( Uptat + u_efuse / 2^16 )- B
13+
* Temperature = A * ( uptat + u_efuse / 2^16 )- B
1414
*
1515
* A B m n : calibration parameters
1616
* u_efuse : fused calibration value, it's a signed 16 bits value
@@ -112,7 +112,7 @@ static int amlogic_thermal_code_to_millicelsius(struct amlogic_thermal *pdata,
112112
const struct amlogic_thermal_soc_calib_data *param =
113113
pdata->data->calibration_parameters;
114114
int temp;
115-
s64 factor, Uptat, uefuse;
115+
s64 factor, uptat, uefuse;
116116

117117
uefuse = pdata->trim_info & TSENSOR_TRIM_SIGN_MASK ?
118118
~(pdata->trim_info & TSENSOR_TRIM_TEMP_MASK) + 1 :
@@ -121,12 +121,12 @@ static int amlogic_thermal_code_to_millicelsius(struct amlogic_thermal *pdata,
121121
factor = param->n * temp_code;
122122
factor = div_s64(factor, 100);
123123

124-
Uptat = temp_code * param->m;
125-
Uptat = div_s64(Uptat, 100);
126-
Uptat = Uptat * BIT(16);
127-
Uptat = div_s64(Uptat, BIT(16) + factor);
124+
uptat = temp_code * param->m;
125+
uptat = div_s64(uptat, 100);
126+
uptat = uptat * BIT(16);
127+
uptat = div_s64(uptat, BIT(16) + factor);
128128

129-
temp = (Uptat + uefuse) * param->A;
129+
temp = (uptat + uefuse) * param->A;
130130
temp = div_s64(temp, BIT(16));
131131
temp = (temp - param->B) * 100;
132132

0 commit comments

Comments
 (0)