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 <shenlichuan@vivo.com> Link: https://lore.kernel.org/r/20240914085415.3886-1-shenlichuan@vivo.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
committed by
Sebastian Reichel
parent
f6da4553ff
commit
570c2234d5
@@ -422,7 +422,7 @@ static irqreturn_t pm860x_batt_handler(int irq, void *data)
|
|||||||
info->temp_type = PM860X_TEMP_TINT;
|
info->temp_type = PM860X_TEMP_TINT;
|
||||||
}
|
}
|
||||||
mutex_unlock(&info->lock);
|
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);
|
clear_ccnt(info, &ccnt_data);
|
||||||
return IRQ_HANDLED;
|
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);
|
ret = measure_12bit_voltage(info, PM8607_GPADC1_MEAS1, data);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
/* meausered Vtbat(mV) / Ibias_current(11uA)*/
|
/* measured Vtbat(mV) / Ibias_current(11uA)*/
|
||||||
*data = (*data * 1000) / GPBIAS2_GPADC1_UA;
|
*data = (*data * 1000) / GPBIAS2_GPADC1_UA;
|
||||||
|
|
||||||
if (*data > TBAT_NEG_25D) {
|
if (*data > TBAT_NEG_25D) {
|
||||||
|
|||||||
@@ -283,7 +283,7 @@ static void ab8500_btemp_periodic_work(struct work_struct *work)
|
|||||||
dev_warn(di->dev, "failed to identify the battery\n");
|
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);
|
ret = thermal_zone_get_temp(di->tz, &bat_temp);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(di->dev, "error reading temperature\n");
|
dev_err(di->dev, "error reading temperature\n");
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ static bool is_charging(struct charger_manager *cm)
|
|||||||
|
|
||||||
/* If at least one of the charger is charging, return yes */
|
/* If at least one of the charger is charging, return yes */
|
||||||
for (i = 0; cm->desc->psy_charger_stat[i]; i++) {
|
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)
|
if (cm->emergency_stop)
|
||||||
continue;
|
continue;
|
||||||
if (!cm->charger_enabled)
|
if (!cm->charger_enabled)
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ static void da9030_charger_check_state(struct da9030_charger *charger)
|
|||||||
}
|
}
|
||||||
if (charger->adc.vchmax_res > charger->thresholds.vcharge_max ||
|
if (charger->adc.vchmax_res > charger->thresholds.vcharge_max ||
|
||||||
charger->adc.vchmin_res < charger->thresholds.vcharge_min ||
|
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_high ||
|
||||||
charger->adc.tbat_res > charger->thresholds.tbat_low) {
|
charger->adc.tbat_res > charger->thresholds.tbat_low) {
|
||||||
/* disable charger */
|
/* disable charger */
|
||||||
@@ -470,7 +470,7 @@ static int da9030_battery_charger_init(struct da9030_charger *charger)
|
|||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
/* enable auto ADC measuremnts */
|
/* enable auto ADC measurements */
|
||||||
return da903x_write(charger->master, DA9030_ADC_AUTO_CONTROL,
|
return da903x_write(charger->master, DA9030_ADC_AUTO_CONTROL,
|
||||||
DA9030_ADC_TBAT_ENABLE | DA9030_ADC_VBAT_IN_TXON |
|
DA9030_ADC_TBAT_ENABLE | DA9030_ADC_VBAT_IN_TXON |
|
||||||
DA9030_ADC_VCH_ENABLE | DA9030_ADC_ICH_ENABLE |
|
DA9030_ADC_VCH_ENABLE | DA9030_ADC_ICH_ENABLE |
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ struct max8925_power_info {
|
|||||||
unsigned usb_online:1;
|
unsigned usb_online:1;
|
||||||
unsigned bat_online:1;
|
unsigned bat_online:1;
|
||||||
unsigned chg_mode:2;
|
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 topoff_threshold:2;
|
||||||
unsigned fast_charge:3;
|
unsigned fast_charge:3;
|
||||||
unsigned no_temp_support:1;
|
unsigned no_temp_support:1;
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ struct qcom_battmgr_message {
|
|||||||
__le32 capacity_low;
|
__le32 capacity_low;
|
||||||
__le32 capacity_warning;
|
__le32 capacity_warning;
|
||||||
__le32 cycle_count;
|
__le32 cycle_count;
|
||||||
/* thousandth of persent */
|
/* thousandth of percent */
|
||||||
__le32 accuracy;
|
__le32 accuracy;
|
||||||
__le32 max_sample_time_ms;
|
__le32 max_sample_time_ms;
|
||||||
__le32 min_sample_time_ms;
|
__le32 min_sample_time_ms;
|
||||||
|
|||||||
@@ -832,7 +832,7 @@ static const struct smb2_register smb2_init_seq[] = {
|
|||||||
AUTO_RECHG_BIT | EN_ANALOG_DROP_IN_VBATT_BIT |
|
AUTO_RECHG_BIT | EN_ANALOG_DROP_IN_VBATT_BIT |
|
||||||
CHARGER_INHIBIT_BIT,
|
CHARGER_INHIBIT_BIT,
|
||||||
.val = 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,
|
{ .addr = STAT_CFG,
|
||||||
.mask = STAT_SW_OVERRIDE_CFG_BIT,
|
.mask = STAT_SW_OVERRIDE_CFG_BIT,
|
||||||
.val = STAT_SW_OVERRIDE_CFG_BIT },
|
.val = STAT_SW_OVERRIDE_CFG_BIT },
|
||||||
|
|||||||
Reference in New Issue
Block a user