Changeset 4326
- Timestamp:
- 02/15/07 12:58:53 (6 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
lib/sysfs.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/CHANGES
r4325 r4326 3 3 4 4 SVN HEAD 5 Library: Do not skip i2c adapters with only a class device and no 6 physical device. This change is required to survive the 7 planned struct class_dev removal from future 2.6 kernels. 5 8 Man page i2cdetect.8: Scanning range can be restricted 6 9 Module bmcsensors: Fix debugging messages -
lm-sensors/trunk/lib/sysfs.c
r4267 r4326 196 196 struct sysfs_attribute *attr; 197 197 198 if (!(dev = sysfs_get_classdev_device(clsdev)))199 continue;200 198 /* Get the adapter name from the classdev "name" attribute 201 199 * (Linux 2.6.20 and later). If it fails, fall back to 202 200 * the device "name" attribute (for older kernels). */ 203 201 if (!(attr = sysfs_get_classdev_attr(clsdev, "name")) 204 && !(attr = sysfs_get_device_attr(dev, "name"))) 202 && !((dev = sysfs_get_classdev_device(clsdev)) && 203 (attr = sysfs_get_device_attr(dev, "name")))) 205 204 continue; 206 205
