[PATCH V3 1/7] power: supply: rk817-charger: correct spelling of coulomb
Chris Morgan
macroalpha82 at gmail.com
Mon Nov 9 06:58:27 PST 2026
From: Chris Morgan <macromorgan at hotmail.com>
Correct the spelling of the word "coulomb" throughout the driver.
Fixes: 11cb8da0189b ("power: supply: Add charger driver for Rockchip RK817")
Suggested-by: Jacob Cook <jacobmcook1984 at gmail.com>
Signed-off-by: Chris Morgan <macromorgan at hotmail.com>
---
drivers/power/supply/rk817_charger.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/power/supply/rk817_charger.c b/drivers/power/supply/rk817_charger.c
index 5558b182a1a6..674622398efa 100644
--- a/drivers/power/supply/rk817_charger.c
+++ b/drivers/power/supply/rk817_charger.c
@@ -83,7 +83,7 @@ struct rk817_charger {
/*
* Calibrate the SOC on a fully charged battery, this way we can use
- * the calibrated SOC value to correct for columb counter drift.
+ * the calibrated SOC value to correct for coulomb counter drift.
*/
bool soc_cal;
@@ -270,9 +270,9 @@ static int rk817_bat_calib_cap(struct rk817_charger *charger)
if (charger->charge_status == CHARGE_FINISH && (!charger->soc_cal)) {
/*
- * soc should be 100000 and columb counter should show the full
+ * soc should be 100000 and coulomb counter should show the full
* charge capacity. Note that if the device is unplugged for a
- * period of several days the columb counter will have a large
+ * period of several days the coulomb counter will have a large
* margin of error, so setting it back to the full charge on
* a completed charge cycle should correct this (my device was
* showing 33% battery after 3 days unplugged when it should
@@ -294,7 +294,7 @@ static int rk817_bat_calib_cap(struct rk817_charger *charger)
}
/*
- * The columb counter can drift up slightly, so we should correct for
+ * The coulomb counter can drift up slightly, so we should correct for
* it. But don't correct it until we're at 100% soc.
*/
if (charger->charge_status == CHARGE_FINISH && charger->soc_cal) {
@@ -307,16 +307,16 @@ static int rk817_bat_calib_cap(struct rk817_charger *charger)
charger->res_div);
/*
- * Re-init columb counter with updated values to correct drift.
+ * Re-init coulomb counter with updated values to correct drift.
*/
if (charge_now / 1000 > charger->fcc_mah) {
dev_dbg(charger->dev,
- "Recalibrating columb counter to %d uah\n",
+ "Recalibrating coulomb counter to %d uah\n",
charge_now);
/*
* Order of operations matters here to ensure we keep
* enough precision until the last step to keep from
- * making needless updates to columb counter.
+ * making needless updates to coulomb counter.
*/
charge_now_adc = CHARGE_TO_ADC(charger->fcc_mah,
charger->res_div);
@@ -757,7 +757,7 @@ rk817_read_or_set_full_charge_on_boot(struct rk817_charger *charger,
bool first_boot;
/*
- * Check if the battery is uninitalized. If it is, the columb counter
+ * Check if the battery is uninitalized. If it is, the coulomb counter
* needs to be set up.
*/
ret = regmap_read(rk808->regmap, RK817_GAS_GAUGE_GG_STS, ®);
@@ -811,7 +811,7 @@ rk817_read_or_set_full_charge_on_boot(struct rk817_charger *charger,
boot_charge_mah = ADC_TO_CHARGE_UAH(tmp,
charger->res_div) / 1000;
/*
- * Check if the columb counter has been off for more than 30
+ * Check if the coulomb counter has been off for more than 30
* minutes as it tends to drift downward. If so, re-init soc
* with the boot voltage instead. Note the unit values for the
* OFF_CNT register appear to be in decaminutes and stops
@@ -840,7 +840,7 @@ rk817_read_or_set_full_charge_on_boot(struct rk817_charger *charger,
}
/*
- * Now we have our full charge capacity and soc, init the columb
+ * Now we have our full charge capacity and soc, init the coulomb
* counter.
*/
boot_charge_mah = charger->soc * charger->fcc_mah / 100 / 1000;
--
2.53.0
More information about the Linux-rockchip
mailing list