Changeset 5404
- Timestamp:
- 11/23/08 16:16:45 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect
r5403 r5404 2400 2400 ################# 2401 2401 2402 # From a sysfs device path, return the driver name, or undef2402 # From a sysfs device path, return the driver (module) name, or undef 2403 2403 sub sysfs_device_driver($) 2404 2404 { 2405 2405 my $device = shift; 2406 2406 2407 my $link = readlink("$device/driver ");2407 my $link = readlink("$device/driver/module"); 2408 2408 return unless defined $link; 2409 2409 return basename($link); … … 3075 3075 if (!i2c_set_slave_addr(\*FILE, $addr)) { 3076 3076 # If the address is busy, we can normally find out which driver 3077 # is using it, and we assume it is the right one. 3077 # requested it (if the kernel is recent enough, at least 2.6.16 3078 # and later are known to work), and we assume it is the right one. 3078 3079 my ($device, $driver); 3079 3080
