2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-09-05 16:55:45 +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

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