From e7efcf65788f5b19384ab3800a8506108dd643b5 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Fri, 16 Sep 2005 17:54:42 +0000 Subject: [PATCH] (Aurelien Jarno) Drop EEPROM support. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3086 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/sensord/chips.c | 47 -------------------------------------------- 1 file changed, 47 deletions(-) diff --git a/prog/sensord/chips.c b/prog/sensord/chips.c index 6c0c6b7d..98458cda 100644 --- a/prog/sensord/chips.c +++ b/prog/sensord/chips.c @@ -1005,52 +1005,6 @@ static const ChipDescriptor asb100_chip = { 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 @@ const ChipDescriptor * const knownChips[] = { &adm1025_chip, &adm9240_chip, &ds1621_chip, - &eeprom_chip, &gl518_chip, &lm75_chip, &lm78_chip,