All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] power: fix spelling typo
@ 2020-09-24  6:37 Wang Qing
  2020-09-29 23:19 ` Sebastian Reichel
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Qing @ 2020-09-24  6:37 UTC (permalink / raw)
  To: Sebastian Reichel, linux-pm, linux-kernel; +Cc: Wang Qing

Modify the comment typo: "compliment" -> "complement".

Signed-off-by: Wang Qing <wangqing@vivo.com>
---
 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] power: fix spelling typo
  2020-09-24  6:37 [PATCH] power: fix spelling typo Wang Qing
@ 2020-09-29 23:19 ` Sebastian Reichel
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Reichel @ 2020-09-29 23:19 UTC (permalink / raw)
  To: Wang Qing; +Cc: linux-pm, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1230 bytes --]

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
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-29 23:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-24  6:37 [PATCH] power: fix spelling typo Wang Qing
2020-09-29 23:19 ` Sebastian Reichel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.