Message ID | 5be014e8e289c615bd9c74321e39484e8f448d8a.1560756733.git.amy.shih@advantech.com.tw (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
Series | [v2,1/9] hwmon: (nct7904) Add error handling in probe function. | expand |
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: