mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 15:42:46 +00:00
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>
This commit is contained in:
parent
c8db568375
commit
ec3af53aa4
1 changed files with 2 additions and 2 deletions
|
@ -653,7 +653,7 @@ int ab8500_fg_inst_curr_finalize(struct ab8500_fg *di, int *res)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* negative value for Discharging
|
* negative value for Discharging
|
||||||
* convert 2's compliment into decimal
|
* convert 2's complement into decimal
|
||||||
*/
|
*/
|
||||||
if (high & 0x10)
|
if (high & 0x10)
|
||||||
val = (low | (high << 8) | 0xFFFFE000);
|
val = (low | (high << 8) | 0xFFFFE000);
|
||||||
|
@ -781,7 +781,7 @@ static void ab8500_fg_acc_cur_work(struct work_struct *work)
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto exit;
|
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)
|
if (high & 0x10)
|
||||||
val = (low | (med << 8) | (high << 16) | 0xFFE00000);
|
val = (low | (med << 8) | (high << 16) | 0xFFE00000);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue