Add back the temp1 in vt1211, patch from Juerg Haefliger <juergh@gmail.com>

This patch enables the reading of temp1 (Reading3) from the VT1211.
Reading3 returns the V1211's internal temperature.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3246 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Rudolf Marek committed 2006-01-27 21:02:09 +00:00
1 parent 528d3c7f4d
commit c83a8a43e8
5 files changed
+36 -16

No files matched your search

+8 -1
View File
@@ -4536,7 +4536,14 @@ static sensors_chip_feature vt1211_features[] =
{ SENSORS_VT1211_FAN2_MIN, "fan2_min", SENSORS_VT1211_FAN2,
SENSORS_VT1211_FAN2,
RW, VT1211_SYSCTL_FAN2, VALUE(1), 0 },
/* no temp1 */
{ SENSORS_VT1211_TEMP1, "temp1", NOMAP, NOMAP,
R, VT1211_SYSCTL_TEMP1, VALUE(3), 1 },
{ SENSORS_VT1211_TEMP1_HYST, "temp1_hyst", SENSORS_VT1211_TEMP1,
SENSORS_VT1211_TEMP1, RW,
VT1211_SYSCTL_TEMP1, VALUE(2), 1 },
{ SENSORS_VT1211_TEMP1_OVER, "temp1_over", SENSORS_VT1211_TEMP1,
SENSORS_VT1211_TEMP1, RW,
VT1211_SYSCTL_TEMP1, VALUE(1), 1 },
{ SENSORS_VT1211_TEMP2, "temp2", NOMAP, NOMAP,
R, VT1211_SYSCTL_TEMP2, VALUE(3), 1 },
{ SENSORS_VT1211_TEMP2_HYST, "temp2_hyst", SENSORS_VT1211_TEMP2,
+3 -3
View File
@@ -1709,9 +1709,9 @@
#define SENSORS_VT1211_FAN2 32 /* R */
#define SENSORS_VT1211_FAN1_MIN 41 /* RW */
#define SENSORS_VT1211_FAN2_MIN 42 /* RW */
#define SENSORS_VT1211_TEMP 51 /* R */
#define SENSORS_VT1211_TEMP_HYST 52 /* RW */
#define SENSORS_VT1211_TEMP_OVER 53 /* RW */
#define SENSORS_VT1211_TEMP1 51 /* R */
#define SENSORS_VT1211_TEMP1_HYST 52 /* RW */
#define SENSORS_VT1211_TEMP1_OVER 53 /* RW */
#define SENSORS_VT1211_TEMP2 54 /* R */
#define SENSORS_VT1211_TEMP2_HYST 55 /* RW */
#define SENSORS_VT1211_TEMP2_OVER 56 /* RW */