2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +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:
Jean Delvare
2009-07-22 12:53:51 +00:00
parent 09d912a45f
commit 4d3ee85bae
2 changed files with 3 additions and 0 deletions

View File

@@ -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

View File

@@ -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;