2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 14:25:39 +00:00

Remove now useless subclient detection code.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2328 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2004-02-29 18:43:53 +00:00
parent 8ee9459465
commit 55903e4677

View File

@@ -303,19 +303,6 @@ int do_a_set(sensors_chip_name name)
{
int res;
/* skip i2c subclients since sysfs doesn't hide these... */
if(name.bus >= 0)
if(name.addr >= 0x48 && name.addr <= 0x4f)
if(!strcmp(name.prefix, "as99127f") ||
!strcmp(name.prefix, "asb100") ||
!strcmp(name.prefix, "w83781d") ||
!strcmp(name.prefix, "w83782d") ||
!strcmp(name.prefix, "w83783s") ||
!strcmp(name.prefix, "w83791d") ||
!strcmp(name.prefix, "w83627hf") ||
!strcmp(name.prefix, "w83697hf"))
return 0;
if ((res = sensors_do_chip_sets(name))) {
if (res == -SENSORS_ERR_PROC) {
fprintf(stderr,"%s: %s for writing;\n",sprintf_chip_name(name),
@@ -423,19 +410,6 @@ void do_a_print(sensors_chip_name name)
const char *algo,*adap;
struct match *m;
/* skip i2c subclients since sysfs doesn't hide these... */
if(name.bus >= 0)
if(name.addr >= 0x48 && name.addr <= 0x4f)
if(!strcmp(name.prefix, "as99127f") ||
!strcmp(name.prefix, "asb100") ||
!strcmp(name.prefix, "w83781d") ||
!strcmp(name.prefix, "w83782d") ||
!strcmp(name.prefix, "w83783s") ||
!strcmp(name.prefix, "w83791d") ||
!strcmp(name.prefix, "w83627hf") ||
!strcmp(name.prefix, "w83697hf"))
return;
/* do we know how to display it? */
for(m = matches; m->prefix != NULL; m++) {
if(!strcmp(name.prefix, m->prefix)) break;