lkml.org 
[lkml]   [2020]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] power: fix spelling typo
Hi,

On Thu, Sep 24, 2020 at 02:37:56PM +0800, Wang Qing wrote:
> Modify the comment typo: "compliment" -> "complement".
>
> Signed-off-by: Wang Qing <wangqing@vivo.com>
> ---

Thanks, queued with modified patch subject.

-- Sebastian

> drivers/power/supply/ab8500_fg.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/power/supply/ab8500_fg.c b/drivers/power/supply/ab8500_fg.c
> index 7eec415..592a73d
> --- 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
> --
> 2.7.4
>
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2020-09-30 01:20    [W:0.050 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site