mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-24 12:04:33 +00:00
Support upcoming sysfs path to i2c adapters.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5759 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
09d912a45f
commit
4d3ee85bae
2 files changed
+3
No files matched your search
@@ -2,6 +2,7 @@ lm-sensors CHANGES file
|
||||
-----------------------
|
||||
|
||||
SVN-HEAD
|
||||
libsensors: Support upcoming sysfs path to i2c adapters
|
||||
pwmconfig: Exit immediately if not root
|
||||
sensors.conf.default: Encourage user to not modify this file
|
||||
sensors-detect: Refer to tmp401 driver if TMP411 is detected
|
||||
|
||||
@@ -730,6 +730,8 @@ int sensors_read_sysfs_bus(void)
|
||||
int ret;
|
||||
|
||||
ret = sysfs_foreach_classdev("i2c-adapter", sensors_add_i2c_bus);
|
||||
if (ret == ENOENT)
|
||||
ret = sysfs_foreach_busdev("i2c", sensors_add_i2c_bus);
|
||||
if (ret && ret != ENOENT)
|
||||
return -SENSORS_ERR_KERNEL;
|
||||
|
||||
|
||||
Reference in new issue
Block a user