mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-31 13:10:30 +00:00
Change voltage magnitude from 2 to 3, so as to limit the
rounding errors. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2595 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
e439883223
commit
937734ebdb
2 files changed
+35
-35
No files matched your search
@@ -639,7 +639,7 @@ int pc87360_detect(struct i2c_adapter *adapter, int address,
|
||||
i &= pc87360_read_value(data, LD_TEMP, NO_BANK,
|
||||
PC87365_REG_TEMP_CONFIG);
|
||||
}
|
||||
data->in_vref = (i&0x02) ? 303 : 297;
|
||||
data->in_vref = (i&0x02) ? 3025 : 2966;
|
||||
#ifdef DEBUG
|
||||
printk(KERN_DEBUG "Using %s reference voltage\n",
|
||||
(i&0x02) ? "external" : "internal");
|
||||
@@ -1126,7 +1126,7 @@ void pc87365_in(struct i2c_client *client, int operation, int ctl_name,
|
||||
int nr = ctl_name - PC87365_SYSCTL_IN0;
|
||||
|
||||
if (operation == SENSORS_PROC_REAL_INFO)
|
||||
*nrels_mag = 2;
|
||||
*nrels_mag = 3;
|
||||
else if (operation == SENSORS_PROC_REAL_READ) {
|
||||
pc87360_update_client(client);
|
||||
results[0] = IN_FROM_REG(data->in_min[nr], data->in_vref);
|
||||
|
||||
Reference in new issue
Block a user