* [PATCH] hwmon: fix spelling typo in comments
@ 2020-09-26 2:08 Wang Qing
2020-09-30 5:06 ` Guenter Roeck
0 siblings, 1 reply; 2+ messages in thread
From: Wang Qing @ 2020-09-26 2:08 UTC (permalink / raw)
To: Eric Tremblay, Jean Delvare, Guenter Roeck, linux-hwmon, linux-kernel
Cc: Wang Qing
Modify the comment typo: "compliment" -> "complement".
Signed-off-by: Wang Qing <wangqing@vivo.com>
---
drivers/hwmon/tmp513.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/tmp513.c b/drivers/hwmon/tmp513.c
index 23908dc..c37d321
--- a/drivers/hwmon/tmp513.c
+++ b/drivers/hwmon/tmp513.c
@@ -192,7 +192,7 @@ static int tmp51x_get_value(struct tmp51x_data *data, u8 reg, u8 pos,
/*
* The valus is read in voltage in the chip but reported as
* current to the user.
- * 2's compliment number shifted by one to four depending
+ * 2's complement number shifted by one to four depending
* on the pga gain setting. 1lsb = 10uV
*/
*val = sign_extend32(regval, 17 - tmp51x_get_pga_shift(data));
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] hwmon: fix spelling typo in comments
2020-09-26 2:08 [PATCH] hwmon: fix spelling typo in comments Wang Qing
@ 2020-09-30 5:06 ` Guenter Roeck
0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2020-09-30 5:06 UTC (permalink / raw)
To: Wang Qing; +Cc: Eric Tremblay, Jean Delvare, linux-hwmon, linux-kernel
On Sat, Sep 26, 2020 at 10:08:33AM +0800, Wang Qing wrote:
> Modify the comment typo: "compliment" -> "complement".
>
> Signed-off-by: Wang Qing <wangqing@vivo.com>
> ---
Applied, but in the future please list the affected driver in the
subject line.
Guenter
> drivers/hwmon/tmp513.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/hwmon/tmp513.c b/drivers/hwmon/tmp513.c
> index 23908dc..c37d321
> --- a/drivers/hwmon/tmp513.c
> +++ b/drivers/hwmon/tmp513.c
> @@ -192,7 +192,7 @@ static int tmp51x_get_value(struct tmp51x_data *data, u8 reg, u8 pos,
> /*
> * The valus is read in voltage in the chip but reported as
> * current to the user.
> - * 2's compliment number shifted by one to four depending
> + * 2's complement number shifted by one to four depending
> * on the pga gain setting. 1lsb = 10uV
> */
> *val = sign_extend32(regval, 17 - tmp51x_get_pga_shift(data));
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-30 5:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-26 2:08 [PATCH] hwmon: fix spelling typo in comments Wang Qing
2020-09-30 5:06 ` Guenter Roeck
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.