summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorWang Qing <wangqing@vivo.com>2020-09-24 08:37:56 +0200
committerSebastian Reichel <sre@kernel.org>2020-09-30 01:12:22 +0200
commitec3af53aa4edf9c770a1b31e3ee6fa6602e98ee2 (patch)
tree721ee88c6b065918f47ba015bea27ba6944e1282 /drivers/power
parentpower: supply: bq25890: document IBAT compensation DT properties (diff)
downloadlinux-ec3af53aa4edf9c770a1b31e3ee6fa6602e98ee2.tar.xz
linux-ec3af53aa4edf9c770a1b31e3ee6fa6602e98ee2.zip
power: supply: ab8500-fg: fix spelling typo
Modify the comment typo: "compliment" -> "complement". Signed-off-by: Wang Qing <wangqing@vivo.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/ab8500_fg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/supply/ab8500_fg.c b/drivers/power/supply/ab8500_fg.c
index 751c4f6c7487..3abd2cd1ee92 100644
--- a/drivers/power/supply/ab8500_fg.c
+++ b/drivers/power/supply/ab8500_fg.c
@@ -653,7 +653,7 @@ int ab8500_fg_inst_curr_finalize(struct ab8500_fg *di, int *res)
/*
* negative value for Discharging
- * convert 2's compliment into decimal
+ * convert 2's complement into decimal
*/
if (high & 0x10)
val = (low | (high << 8) | 0xFFFFE000);
@@ -781,7 +781,7 @@ static void ab8500_fg_acc_cur_work(struct work_struct *work)
if (ret < 0)
goto exit;
- /* Check for sign bit in case of negative value, 2's compliment */
+ /* Check for sign bit in case of negative value, 2's complement */
if (high & 0x10)
val = (low | (med << 8) | (high << 16) | 0xFFE00000);
else