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:
1
CHANGES
1
CHANGES
@@ -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