Changeset 2215
- Timestamp:
- 01/12/04 06:21:17 (9 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
kernel/chips/smartbatt.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/CHANGES
r2214 r2215 31 31 remove init and temp_type module parameters 32 32 Module lm90: Handle hysteresis differently 33 Module smartbatt: Fix detection 33 Module smartbatt: Fix detection, magnitudes, temp 34 34 Module w83781d: Fix negative voltages 35 35 Module w83l785ts: New -
lm-sensors/trunk/kernel/chips/smartbatt.c
r2214 r2215 432 432 struct smartbatt_data *data = client->data; 433 433 if (operation == SENSORS_PROC_REAL_INFO) 434 *nrels_mag = 0;435 else if (operation == SENSORS_PROC_REAL_READ) { 436 smartbatt_update_client(client); 437 results[0] = data->temp ;434 *nrels_mag = 1; 435 else if (operation == SENSORS_PROC_REAL_READ) { 436 smartbatt_update_client(client); 437 results[0] = data->temp - 2731; /* convert from Kelvin */ 438 438 *nrels_mag = 1; 439 439 } … … 445 445 struct smartbatt_data *data = client->data; 446 446 if (operation == SENSORS_PROC_REAL_INFO) 447 *nrels_mag = 0;447 *nrels_mag = 3; 448 448 else if (operation == SENSORS_PROC_REAL_READ) { 449 449 smartbatt_update_client(client); … … 460 460 struct smartbatt_data *data = client->data; 461 461 if (operation == SENSORS_PROC_REAL_INFO) 462 *nrels_mag = 0;462 *nrels_mag = 3; 463 463 else if (operation == SENSORS_PROC_REAL_READ) { 464 464 smartbatt_update_client(client);
