From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: ADM1030/ADM1031 user-space support
Date: Thu, 19 May 2005 06:24:58 +0000 [thread overview]
Message-ID: <20040517215728.09bfee29.khali@linux-fr.org> (raw)
In-Reply-To: <20040517100022.54fae886.khali@linux-fr.org>
> Here is attached an updated version of the user-space support for the
> adm1030 type of chips according to Jean's comments.
diff -urN -x CVS lm_sensors2/etc/sensors.conf.eg lm_sensors2_mine/etc/sensors.conf.eg
--- lm_sensors2/etc/sensors.conf.eg 2004-05-11 20:58:39.000000000 +0200
+++ lm_sensors2_mine/etc/sensors.conf.eg 2004-05-17 14:55:38.000000000 +0200
@@ -2113,3 +2113,15 @@
set fan1_min 2000
set fan2_min 2000
set fan3_min 2000
+
+chip "adm1030-*"
+label temp1_input "SYS Temp"
+label temp2_input "CPU Temp"
+label fan1_input "CPU Fan"
+
+chip "adm1031-*"
+label temp1_input "SYS Temp"
+label temp2_input "CPU Temp1"
+label temp3_input "CPU Temp2"
+label fan1_input "Fan1"
+label fan2_input "Fan2"
Please indent the same way the other sections are. You forgot to remove
the "_input" suffixes.
diff -urN -x CVS lm_sensors2/lib/chips.c lm_sensors2_mine/lib/chips.c
--- lm_sensors2/lib/chips.c 2004-04-24 10:10:48.000000000 +0200
+++ lm_sensors2_mine/lib/chips.c 2004-05-17 14:10:30.000000000 +0200
@@ -360,6 +360,90 @@
+ { SENSORS_ADM1031_FAN1, "fan1_input", NOMAP,
+ NOMAP, R,
+ ADM1031_SYSCTL_FAN1, VALUE(2), 0 },
Here too you forgot to remove "_input". Same for the adm1031 right below.
diff -urN -x CVS lm_sensors2/prog/sensors/chips.c lm_sensors2_mine/prog/sensors/chips.c
--- lm_sensors2/prog/sensors/chips.c 2004-05-08 14:24:16.000000000 +0200
+++ lm_sensors2_mine/prog/sensors/chips.c 2004-05-17 17:12:46.000000000 +0200
+ for(i=0; i<(is_1031?2:1);i++) {
+ if (!sensors_get_label_and_valid(*name, SENSORS_ADM1031_FAN1,
+ &label, &valid)
You always get fan1 label.
+ && !sensors_get_feature(*name, SENSORS_ADM1031_FAN1+i*2, &cur)
+ && !sensors_get_feature(*name, SENSORS_ADM1031_FAN1_MIN+i*2, &low)
+ ) {
+ if (valid) {
+ print_label(label, 10);
+ printf("%4.0f RPM (min = %4.0f )", cur, low);
"RPM" missing for low limit.
The rest of it looks good to me.
Thanks.
--
Jean Delvare
http://khali.linux-fr.org/
next prev parent reply other threads:[~2005-05-19 6:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 6:24 ADM1030/ADM1031 user-space support Jean Delvare
2005-05-19 6:24 ` Jean Delvare
2005-05-19 6:24 ` Jean Delvare [this message]
2005-05-19 6:24 ` Jean Delvare
2005-05-19 6:24 ` Alexandre d'Alton
2005-05-19 6:24 ` Alexandre d'Alton
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` free
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040517215728.09bfee29.khali@linux-fr.org \
--to=khali@linux-fr.org \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.