Skip to content

Commit 570c223

Browse files
Shen Lichuansre
authored andcommitted
power: supply: Correct multiple typos in comments
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent f6da455 commit 570c223

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

drivers/power/supply/88pm860x_battery.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ static irqreturn_t pm860x_batt_handler(int irq, void *data)
422422
info->temp_type = PM860X_TEMP_TINT;
423423
}
424424
mutex_unlock(&info->lock);
425-
/* clear ccnt since battery is attached or dettached */
425+
/* clear ccnt since battery is attached or detached */
426426
clear_ccnt(info, &ccnt_data);
427427
return IRQ_HANDLED;
428428
}
@@ -566,7 +566,7 @@ static int measure_temp(struct pm860x_battery_info *info, int *data)
566566
ret = measure_12bit_voltage(info, PM8607_GPADC1_MEAS1, data);
567567
if (ret)
568568
return ret;
569-
/* meausered Vtbat(mV) / Ibias_current(11uA)*/
569+
/* measured Vtbat(mV) / Ibias_current(11uA)*/
570570
*data = (*data * 1000) / GPBIAS2_GPADC1_UA;
571571

572572
if (*data > TBAT_NEG_25D) {

drivers/power/supply/ab8500_btemp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ static void ab8500_btemp_periodic_work(struct work_struct *work)
283283
dev_warn(di->dev, "failed to identify the battery\n");
284284
}
285285

286-
/* Failover if a reading is erroneous, use last meausurement */
286+
/* Failover if a reading is erroneous, use last measurement */
287287
ret = thermal_zone_get_temp(di->tz, &bat_temp);
288288
if (ret) {
289289
dev_err(di->dev, "error reading temperature\n");

drivers/power/supply/charger-manager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ static bool is_charging(struct charger_manager *cm)
221221

222222
/* If at least one of the charger is charging, return yes */
223223
for (i = 0; cm->desc->psy_charger_stat[i]; i++) {
224-
/* 1. The charger sholuld not be DISABLED */
224+
/* 1. The charger should not be DISABLED */
225225
if (cm->emergency_stop)
226226
continue;
227227
if (!cm->charger_enabled)

drivers/power/supply/da9030_battery.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ static void da9030_charger_check_state(struct da9030_charger *charger)
269269
}
270270
if (charger->adc.vchmax_res > charger->thresholds.vcharge_max ||
271271
charger->adc.vchmin_res < charger->thresholds.vcharge_min ||
272-
/* Tempreture readings are negative */
272+
/* Temperature readings are negative */
273273
charger->adc.tbat_res < charger->thresholds.tbat_high ||
274274
charger->adc.tbat_res > charger->thresholds.tbat_low) {
275275
/* disable charger */
@@ -470,7 +470,7 @@ static int da9030_battery_charger_init(struct da9030_charger *charger)
470470
if (ret)
471471
return ret;
472472

473-
/* enable auto ADC measuremnts */
473+
/* enable auto ADC measurements */
474474
return da903x_write(charger->master, DA9030_ADC_AUTO_CONTROL,
475475
DA9030_ADC_TBAT_ENABLE | DA9030_ADC_VBAT_IN_TXON |
476476
DA9030_ADC_VCH_ENABLE | DA9030_ADC_ICH_ENABLE |

drivers/power/supply/max8925_power.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ struct max8925_power_info {
7373
unsigned usb_online:1;
7474
unsigned bat_online:1;
7575
unsigned chg_mode:2;
76-
unsigned batt_detect:1; /* detecing MB by ID pin */
76+
unsigned batt_detect:1; /* detecting MB by ID pin */
7777
unsigned topoff_threshold:2;
7878
unsigned fast_charge:3;
7979
unsigned no_temp_support:1;

drivers/power/supply/qcom_battmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ struct qcom_battmgr_message {
151151
__le32 capacity_low;
152152
__le32 capacity_warning;
153153
__le32 cycle_count;
154-
/* thousandth of persent */
154+
/* thousandth of percent */
155155
__le32 accuracy;
156156
__le32 max_sample_time_ms;
157157
__le32 min_sample_time_ms;

drivers/power/supply/qcom_pmi8998_charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ static const struct smb2_register smb2_init_seq[] = {
832832
AUTO_RECHG_BIT | EN_ANALOG_DROP_IN_VBATT_BIT |
833833
CHARGER_INHIBIT_BIT,
834834
.val = CHARGER_INHIBIT_BIT },
835-
/* STAT pin software override, match downstream. Parallell charging? */
835+
/* STAT pin software override, match downstream. Parallel charging? */
836836
{ .addr = STAT_CFG,
837837
.mask = STAT_SW_OVERRIDE_CFG_BIT,
838838
.val = STAT_SW_OVERRIDE_CFG_BIT },

0 commit comments

Comments
 (0)