summaryrefslogtreecommitdiff
path: root/lib/scanner.h
diff options
context:
space:
mode:
authorOndřej Lysoněk <olysonek@redhat.com>2018-11-06 15:49:11 +0100
committerOndřej Lysoněk <olysonek@redhat.com>2018-11-23 12:17:01 +0100
commit7e976f1325e55b5e26a63c8f9c7af0cb9aac3aa7 (patch)
tree068a989135239fbd948f825d32d144b21a821816 /lib/scanner.h
parentd4cb932567407cc3cfb40fa11763a7459a278741 (diff)
downloadlm-sensors-git-7e976f1325e55b5e26a63c8f9c7af0cb9aac3aa7.tar.gz
libsensors: Treat devices without a known ancestor bus as virtual
Currently only hwmon devices that don't have a parent device are treated as virtual. Let's extend the concept to hwmon devices, that don't have a *recognized ancestor* device (hwmon devices that according to the kernel don't reside on a bus that we recognize). This change is meant to address cases where a hwmon device has a thermal class device for a parent, but the thermal class device doesn't have a parent device. These kind of hwmon devices started appearing in the 4.19 kernel due to commit f6b6b52ef7a54160c0. It was not reported as a kernel regression and fixed in the kernel, because according to Documentation/admin-guide/sysfs-rules.rst, the change was OK to make (it says "Position of devices along device chain can change"). Fixes #139 Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
Diffstat (limited to 'lib/scanner.h')
0 files changed, 0 insertions, 0 deletions