power: supply: Correct multiple typos in comments
PATCH 1/1 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]>
--- drivers/power/supply/88pm860x_battery.c | 4 ++-- drivers/power/supply/ab8500_btemp.c | 2 +- drivers/power/supply/charger-manager.c | 2 +- drivers/power/supply/da9030_battery.c | 4 ++-- drivers/power/supply/max8925_power.c | 2 +- drivers/power/supply/qcom_battmgr.c | 2 +- drivers/power/supply/qcom_pmi8998_charger.c | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-)
drivers/power/supply/88pm860x_battery.c +2 -2
@@ -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 ) {
drivers/power/supply/ab8500_btemp.c +1 -1
@@ -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" );
drivers/power/supply/charger-manager.c +1 -1
@@ -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)
drivers/power/supply/da9030_battery.c +2 -2
@@ -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 |
drivers/power/supply/max8925_power.c +1 -1
@@ -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;
drivers/power/supply/qcom_battmgr.c +1 -1
@@ -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;
drivers/power/supply/qcom_pmi8998_charger.c +1 -1
@@ -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 },
Signature · 1 line
2.17.1
Sebastian Reichel
AppliedQuoted 13 lines · Shen Lichuan
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
Quoted 1 line
[...]
Applied, thanks!
[1/1] power: supply: Correct multiple typos in comments
commit: 570c2234d5d62d52be7e8e35169b96d98378a7ce
Best regards,
Signature · 1 line
Sebastian Reichel <[email protected]>