[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5be014e8e289c615bd9c74321e39484e8f448d8a.1560756733.git.amy.shih@advantech.com.tw>
Date: Mon, 17 Jun 2019 08:15:26 +0000
From: <Amy.Shih@...antech.com.tw>
To: <she90122@...il.com>
CC: <amy.shih@...antech.com.tw>, <oakley.ding@...antech.com.tw>,
<jia.sui@...antech.com.cn>, Jean Delvare <jdelvare@...e.com>,
Guenter Roeck <linux@...ck-us.net>,
<linux-hwmon@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: [v2 7/9] hwmon: (nct7904) Delete wrong comment in function nct7904_write_in.
From: "amy.shih" <amy.shih@...antech.com.tw>
In function nct7904_write_in, delete wrong comment "Bit 15 is sign bit".
Signed-off-by: amy.shih <amy.shih@...antech.com.tw>
---
Changes in v2:
- Delete wrong comment in function nct7904_write_in.
drivers/hwmon/nct7904.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/nct7904.c b/drivers/hwmon/nct7904.c
index 3fa3eb31d176..c74f919c0181 100644
--- a/drivers/hwmon/nct7904.c
+++ b/drivers/hwmon/nct7904.c
@@ -581,7 +581,7 @@ static int nct7904_write_in(struct device *dev, u32 attr, int channel,
else
val = val / 6; /* 0.006V scale */
- val = clamp_val(val, 0, 0x7ff); /* Bit 15 is sign bit */
+ val = clamp_val(val, 0, 0x7ff);
switch (attr) {
case hwmon_in_min:
--
2.17.1
Powered by blists - more mailing lists