hwmon: (tmp513) fix spelling typo in comments
authorWang Qing <wangqing@vivo.com>
Sat, 26 Sep 2020 02:08:33 +0000 (10:08 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 4 Oct 2020 15:40:10 +0000 (08:40 -0700)
Modify the comment typo: "compliment" -> "complement".

Signed-off-by: Wang Qing <wangqing@vivo.com>
Link: https://lore.kernel.org/r/1601086116-32218-1-git-send-email-wangqing@vivo.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tmp513.c

index 9187dac06ffdc716cbed015ffb324efb3c0ca711..47bbe47e062fd7a20e27f843b625f07e005722ee 100644 (file)
@@ -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));