From: aurelien@aurel32.net (Aurelien Jarno)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] sensord and RAM SPD
Date: Fri, 16 Sep 2005 14:52:37 +0000 [thread overview]
Message-ID: <20050916125218.GA17407@bode.aurel32.net> (raw)
In-Reply-To: <20050916094258.GA26164@bode.aurel32.net>
On Fri, Sep 16, 2005 at 12:05:04PM +0200, Jean Delvare wrote:
>
> Hi Aurelien,
>
> [Aurelien Jarno]
> > > I'd prefer that we plain drop eeprom support from sensord.
> >
> > That's also fine with me. Do you want a patch for that?
>
> Yes please :)
>
Please find it attached.
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian GNU/Linux developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
-------------- next part --------------
--- lm-sensors-2.9.2.orig/prog/sensord/chips.c
+++ lm-sensors-2.9.2/prog/sensord/chips.c
@@ -1005,52 +1005,6 @@
asb100_names, asb100_features, 0, 0
};
-/** EEPROM **/
-
-static const char *
-fmtType_EEPROM
-(const double values[], int alarm, int beep) {
- if ((int) values[0] = 4)
- sprintf (buff, "SDRAM DIMM SPD");
- else if ((int) values[0] = 7)
- sprintf (buff, "DDR SDRAM DIMM SPD");
- else
- sprintf (buff, "Invalid"); /* N.B: sensors just returns, aborting further tests; I don't.. */
- return fmtExtra (alarm, beep);
-}
-
-static const char *
-fmtRowCol_EEPROM
-(const double values[], int alarm, int beep) {
- int row = (int) values[0];
- int col = (int) values[1];
- int num = (int) values[2];
- int banks = (int) values[3];
- int foo = (row & 0xf) + (col & 0xf) + 17;
- if ((foo > 0) && (foo <= 12) && (num <= 8) && (banks <= 8)) {
- sprintf (buff, "%d", (1 << foo) * num * banks);
- } else {
- sprintf (buff, "Invalid %d %d %d %d", row, col, num, banks);
- }
- return buff;
-}
-
-static const char *eeprom_names[] = {
- SENSORS_EEPROM_PREFIX, NULL
-};
-
-static const FeatureDescriptor eeprom_features[] = {
- { fmtType_EEPROM, NULL, DataType_other, 0, 0,
- { SENSORS_EEPROM_TYPE, -1 } },
- { fmtRowCol_EEPROM, NULL, DataType_other, 0, 0,
- { SENSORS_EEPROM_ROWADDR, SENSORS_EEPROM_COLADDR, SENSORS_EEPROM_NUMROWS, SENSORS_EEPROM_BANKS, -1 } },
- { NULL }
-};
-
-static const ChipDescriptor eeprom_chip = {
- eeprom_names, eeprom_features, 0, 0
-};
-
/** PC87360 **/
static const char *
@@ -1145,7 +1099,6 @@
&adm1025_chip,
&adm9240_chip,
&ds1621_chip,
- &eeprom_chip,
&gl518_chip,
&lm75_chip,
&lm78_chip,
next prev parent reply other threads:[~2005-09-16 14:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-16 11:43 [lm-sensors] sensord and RAM SPD Aurelien Jarno
2005-09-16 11:56 ` Jean Delvare
2005-09-16 12:04 ` Aurelien Jarno
2005-09-16 12:15 ` Jean Delvare
2005-09-16 14:52 ` Aurelien Jarno [this message]
2005-09-16 15:39 ` David Goodenough
2005-09-16 16:15 ` Jean Delvare
2005-09-16 19:55 ` Jean Delvare
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=20050916125218.GA17407@bode.aurel32.net \
--to=aurelien@aurel32.net \
--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.