mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-27 12:30:43 +00:00
Subject: [PATCH 1/4] libsensors: Detect OpenFirmware hwmon devices
On a QS22 blade, the BMC containing the (ibmpex) power meters is enumerated via Open Firmware. Check for "of_platform" to handle this case. Signed-off-by: Darrick J. Wong <djwong@us.ibm.com> git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5174 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
4293c939a7
commit
7566fa5b1c
1 file changed
+2
-1
+2
-1
@@ -532,7 +532,8 @@ static int sensors_read_one_sysfs_chip(const char *dev_path,
|
||||
entry.chip.bus.type = SENSORS_BUS_TYPE_PCI;
|
||||
entry.chip.bus.nr = 0;
|
||||
} else
|
||||
if ((!subsys || !strcmp(subsys, "platform"))) {
|
||||
if ((!subsys || !strcmp(subsys, "platform") ||
|
||||
!strcmp(subsys, "of_platform"))) {
|
||||
/* must be new ISA (platform driver) */
|
||||
if (sscanf(dev_name, "%*[a-z0-9_].%d", &entry.chip.addr) != 1)
|
||||
entry.chip.addr = 0;
|
||||
|
||||
Reference in new issue
Block a user