mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-31 13:10:30 +00:00
fix /proc magnitudes; convert temp from Kelvin to C
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2215 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
e9d296adf3
commit
b5c0ec5d74
2 files changed
+5
-5
No files matched your search
@@ -30,7 +30,7 @@ ask CVS about it:
|
||||
remove initialization of temp_type and fan_ctl;
|
||||
remove init and temp_type module parameters
|
||||
Module lm90: Handle hysteresis differently
|
||||
Module smartbatt: Fix detection
|
||||
Module smartbatt: Fix detection, magnitudes, temp
|
||||
Module w83781d: Fix negative voltages
|
||||
Module w83l785ts: New
|
||||
Program eeprog: Make 8 bit mode the default
|
||||
|
||||
@@ -431,10 +431,10 @@ void smartbatt_temp(struct i2c_client *client, int operation, int ctl_name,
|
||||
{
|
||||
struct smartbatt_data *data = client->data;
|
||||
if (operation == SENSORS_PROC_REAL_INFO)
|
||||
*nrels_mag = 0;
|
||||
*nrels_mag = 1;
|
||||
else if (operation == SENSORS_PROC_REAL_READ) {
|
||||
smartbatt_update_client(client);
|
||||
results[0] = data->temp;
|
||||
results[0] = data->temp - 2731; /* convert from Kelvin */
|
||||
*nrels_mag = 1;
|
||||
}
|
||||
}
|
||||
@@ -444,7 +444,7 @@ void smartbatt_i(struct i2c_client *client, int operation, int ctl_name,
|
||||
{
|
||||
struct smartbatt_data *data = client->data;
|
||||
if (operation == SENSORS_PROC_REAL_INFO)
|
||||
*nrels_mag = 0;
|
||||
*nrels_mag = 3;
|
||||
else if (operation == SENSORS_PROC_REAL_READ) {
|
||||
smartbatt_update_client(client);
|
||||
results[0] = data->chgi;
|
||||
@@ -459,7 +459,7 @@ void smartbatt_v(struct i2c_client *client, int operation, int ctl_name,
|
||||
{
|
||||
struct smartbatt_data *data = client->data;
|
||||
if (operation == SENSORS_PROC_REAL_INFO)
|
||||
*nrels_mag = 0;
|
||||
*nrels_mag = 3;
|
||||
else if (operation == SENSORS_PROC_REAL_READ) {
|
||||
smartbatt_update_client(client);
|
||||
results[0] = data->chgv;
|
||||
|
||||
Reference in new issue
Block a user