Ticket #2240 (closed defect: fixed)
bus type guessing in sensors_read_one_sysfs_chip
|Reported by:||khali||Owned by:||khali|
The method to detect the bus type for each hwmon chip in sensors_read_one_sysfs_chip() is quite tricky. We attempt to deduce the type from the format of the device's bus id. This is fragile. We should instead read the "subsystem" link to figure out the bus type, and only then parse the bus id accordingly.