]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
power: supply: Correct multiple typos in comments
authorShen Lichuan <shenlichuan@vivo.com>
Sat, 14 Sep 2024 08:54:15 +0000 (16:54 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 15 Oct 2024 20:37:00 +0000 (22:37 +0200)
Fixed some spelling errors, the details are as follows:

-in the code comments:
dettached->detached
meausered->measured
meausurement->measurement
sholuld->should
Tempreture->Temperature
measuremnts->measurements
detecing->detecting
persent->percent
Parallell->Parallel

Signed-off-by: Shen Lichuan <shenlichuan@vivo.com>
Link: https://lore.kernel.org/r/20240914085415.3886-1-shenlichuan@vivo.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/88pm860x_battery.c
drivers/power/supply/ab8500_btemp.c
drivers/power/supply/charger-manager.c
drivers/power/supply/da9030_battery.c
drivers/power/supply/max8925_power.c
drivers/power/supply/qcom_battmgr.c
drivers/power/supply/qcom_pmi8998_charger.c

index 34619c4d4eced966e04ef03faa0a518d98ddb081..b7938fbb24a51f46a4865f05983a138e3e84b04a 100644 (file)
@@ -422,7 +422,7 @@ static irqreturn_t pm860x_batt_handler(int irq, void *data)
                info->temp_type = PM860X_TEMP_TINT;
        }
        mutex_unlock(&info->lock);
-       /* clear ccnt since battery is attached or dettached */
+       /* clear ccnt since battery is attached or detached */
        clear_ccnt(info, &ccnt_data);
        return IRQ_HANDLED;
 }
@@ -566,7 +566,7 @@ static int measure_temp(struct pm860x_battery_info *info, int *data)
                ret = measure_12bit_voltage(info, PM8607_GPADC1_MEAS1, data);
                if (ret)
                        return ret;
-               /* meausered Vtbat(mV) / Ibias_current(11uA)*/
+               /* measured Vtbat(mV) / Ibias_current(11uA)*/
                *data = (*data * 1000) / GPBIAS2_GPADC1_UA;
 
                if (*data > TBAT_NEG_25D) {
index 56f136b2d071d3a1d10a54455edd314ebabe6272..87c9b8e744b319595c8a8f83296d711b27871063 100644 (file)
@@ -283,7 +283,7 @@ static void ab8500_btemp_periodic_work(struct work_struct *work)
                        dev_warn(di->dev, "failed to identify the battery\n");
        }
 
-       /* Failover if a reading is erroneous, use last meausurement */
+       /* Failover if a reading is erroneous, use last measurement */
        ret = thermal_zone_get_temp(di->tz, &bat_temp);
        if (ret) {
                dev_err(di->dev, "error reading temperature\n");
index 96f0a7fbf10518c838c36f3c24bbcbe22765b3b1..858e2b77ee5b00017a7ef334a998ea79d42fdce7 100644 (file)
@@ -221,7 +221,7 @@ static bool is_charging(struct charger_manager *cm)
 
        /* If at least one of the charger is charging, return yes */
        for (i = 0; cm->desc->psy_charger_stat[i]; i++) {
-               /* 1. The charger sholuld not be DISABLED */
+               /* 1. The charger should not be DISABLED */
                if (cm->emergency_stop)
                        continue;
                if (!cm->charger_enabled)
index 04e0f4162d42b82bb4bb45beedf1cf7e346f3aae..b89604a8c0199f9854d5ebc35249494953d84345 100644 (file)
@@ -269,7 +269,7 @@ static void da9030_charger_check_state(struct da9030_charger *charger)
                }
                if (charger->adc.vchmax_res > charger->thresholds.vcharge_max ||
                    charger->adc.vchmin_res < charger->thresholds.vcharge_min ||
-                   /* Tempreture readings are negative */
+                   /* Temperature readings are negative */
                    charger->adc.tbat_res < charger->thresholds.tbat_high ||
                    charger->adc.tbat_res > charger->thresholds.tbat_low) {
                        /* disable charger */
@@ -470,7 +470,7 @@ static int da9030_battery_charger_init(struct da9030_charger *charger)
        if (ret)
                return ret;
 
-       /* enable auto ADC measuremnts */
+       /* enable auto ADC measurements */
        return da903x_write(charger->master, DA9030_ADC_AUTO_CONTROL,
                            DA9030_ADC_TBAT_ENABLE | DA9030_ADC_VBAT_IN_TXON |
                            DA9030_ADC_VCH_ENABLE | DA9030_ADC_ICH_ENABLE |
index 621a006d52a96051829f764ca07984ce1aabe76d..fc24a6d3b63d8fbd3241df5303e7ce62f96a4935 100644 (file)
@@ -73,7 +73,7 @@ struct max8925_power_info {
        unsigned                usb_online:1;
        unsigned                bat_online:1;
        unsigned                chg_mode:2;
-       unsigned                batt_detect:1;  /* detecing MB by ID pin */
+       unsigned                batt_detect:1;  /* detecting MB by ID pin */
        unsigned                topoff_threshold:2;
        unsigned                fast_charge:3;
        unsigned                no_temp_support:1;
index f0a64c00ddaae0481a001726585cd13ee450dbde..47d29271ddf400b76dd5b0a1b8d1ba86c017afc0 100644 (file)
@@ -151,7 +151,7 @@ struct qcom_battmgr_message {
                        __le32 capacity_low;
                        __le32 capacity_warning;
                        __le32 cycle_count;
-                       /* thousandth of persent */
+                       /* thousandth of percent */
                        __le32 accuracy;
                        __le32 max_sample_time_ms;
                        __le32 min_sample_time_ms;
index 81acbd8b2169ce404028fd772276f8573511d96f..3b4132376649e088d14753de05982e8ea0d18371 100644 (file)
@@ -832,7 +832,7 @@ static const struct smb2_register smb2_init_seq[] = {
                  AUTO_RECHG_BIT | EN_ANALOG_DROP_IN_VBATT_BIT |
                  CHARGER_INHIBIT_BIT,
          .val = CHARGER_INHIBIT_BIT },
-       /* STAT pin software override, match downstream. Parallell charging? */
+       /* STAT pin software override, match downstream. Parallel charging? */
        { .addr = STAT_CFG,
          .mask = STAT_SW_OVERRIDE_CFG_BIT,
          .val = STAT_SW_OVERRIDE_CFG_BIT },