diff --git a/CHANGES b/CHANGES index 57d7979e..ab950666 100644 --- a/CHANGES +++ b/CHANGES @@ -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 diff --git a/kernel/chips/smartbatt.c b/kernel/chips/smartbatt.c index f272237d..0b415ffd 100644 --- a/kernel/chips/smartbatt.c +++ b/kernel/chips/smartbatt.c @@ -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;