]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
thermal/drivers/amlogic: Rename Uptat to uptat to follow kernel coding style
authorEnrique Isidoro Vazquez Ramos <kike.correo99.f@gmail.com>
Tue, 25 Mar 2025 19:30:44 +0000 (13:30 -0600)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 16 May 2025 10:50:01 +0000 (12:50 +0200)
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>
drivers/thermal/amlogic_thermal.c

index 3c5f7dbddf2c1fd979e61615b47e4eb12a19f95e..5448d772db12abd1f11b3a185c5d84735dd8dffe 100644 (file)
@@ -7,10 +7,10 @@
  *
  * Register value to celsius temperature formulas:
  *     Read_Val            m * U
- * U = ---------, Uptat = ---------
+ * U = ---------, uptat = ---------
  *     2^16              1 + n * U
  *
- * Temperature = A * ( Uptat + u_efuse / 2^16 )- B
+ * Temperature = A * ( uptat + u_efuse / 2^16 )- B
  *
  *  A B m n : calibration parameters
  *  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,
        const struct amlogic_thermal_soc_calib_data *param =
                                        pdata->data->calibration_parameters;
        int temp;
-       s64 factor, Uptat, uefuse;
+       s64 factor, uptat, uefuse;
 
        uefuse = pdata->trim_info & TSENSOR_TRIM_SIGN_MASK ?
                             ~(pdata->trim_info & TSENSOR_TRIM_TEMP_MASK) + 1 :
@@ -121,12 +121,12 @@ static int amlogic_thermal_code_to_millicelsius(struct amlogic_thermal *pdata,
        factor = param->n * temp_code;
        factor = div_s64(factor, 100);
 
-       Uptat = temp_code * param->m;
-       Uptat = div_s64(Uptat, 100);
-       Uptat = Uptat * BIT(16);
-       Uptat = div_s64(Uptat, BIT(16) + factor);
+       uptat = temp_code * param->m;
+       uptat = div_s64(uptat, 100);
+       uptat = uptat * BIT(16);
+       uptat = div_s64(uptat, BIT(16) + factor);
 
-       temp = (Uptat + uefuse) * param->A;
+       temp = (uptat + uefuse) * param->A;
        temp = div_s64(temp, BIT(16));
        temp = (temp - param->B) * 100;