Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Enrique Isidoro Vazquez Ramos and committed by
Daniel Lezcano
0f2bd5a0 592ebd77

+8 -8
+8 -8
drivers/thermal/amlogic_thermal.c
··· 7 7 * 8 8 * Register value to celsius temperature formulas: 9 9 * Read_Val m * U 10 - * U = ---------, Uptat = --------- 10 + * U = ---------, uptat = --------- 11 11 * 2^16 1 + n * U 12 12 * 13 - * Temperature = A * ( Uptat + u_efuse / 2^16 )- B 13 + * Temperature = A * ( uptat + u_efuse / 2^16 )- B 14 14 * 15 15 * A B m n : calibration parameters 16 16 * u_efuse : fused calibration value, it's a signed 16 bits value ··· 112 112 const struct amlogic_thermal_soc_calib_data *param = 113 113 pdata->data->calibration_parameters; 114 114 int temp; 115 - s64 factor, Uptat, uefuse; 115 + s64 factor, uptat, uefuse; 116 116 117 117 uefuse = pdata->trim_info & TSENSOR_TRIM_SIGN_MASK ? 118 118 ~(pdata->trim_info & TSENSOR_TRIM_TEMP_MASK) + 1 : ··· 121 121 factor = param->n * temp_code; 122 122 factor = div_s64(factor, 100); 123 123 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); 128 128 129 - temp = (Uptat + uefuse) * param->A; 129 + temp = (uptat + uefuse) * param->A; 130 130 temp = div_s64(temp, BIT(16)); 131 131 temp = (temp - param->B) * 100; 132 132