mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 06:15:15 +00:00
skip i2c subclients not hidden by sysfs
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2064 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -362,6 +362,18 @@ 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, "w83781d") ||
|
||||
!strcmp(name.prefix, "w83782d") ||
|
||||
!strcmp(name.prefix, "w83783s") ||
|
||||
!strcmp(name.prefix, "w83791d") ||
|
||||
!strcmp(name.prefix, "w83627hf") ||
|
||||
!strcmp(name.prefix, "w83697hf"))
|
||||
return;
|
||||
|
||||
printf("%s\n",sprintf_chip_name(name));
|
||||
adap = sensors_get_adapter_name(name.bus);
|
||||
if (adap && !hide_adapter)
|
||||
|
Reference in New Issue
Block a user