commit | e5fc3a55d344167832cab45cc3626fe5cf44d76c | [log] [tgz] |
---|---|---|
author | Bruce Mitchell <bruce.mitchell@linux.vnet.ibm.com> | Tue Aug 10 11:50:25 2021 -0500 |
committer | Bruce Mitchell <bruce.mitchell@linux.vnet.ibm.com> | Wed Aug 11 02:37:29 2021 +0000 |
tree | 4c76c5c5c1353386fb58ecc80837c889323a6a65 | |
parent | 5cf0f99210890d0cd52d5929e919316d238a5701 [diff] |
Compute IIO reading from raw with offset and scale For IIO RAW sensors we get a raw_value, an offset, and scale to compute the value = (raw_value + offset) * scale, thus scale changes from a divisor to a multiplier. Tested: on Rainier and Everest the sensors function the same before and after this commit is applied. Signed-off-by: Bruce Mitchell <bruce.mitchell@linux.vnet.ibm.com> Change-Id: I1f6658107ac4a44e622ce01ced39ee0ecf8ee48b
dbus-sensors is a collection of sensor applications that provide the xyz.openbmc_project.Sensor collection of interfaces. They read sensor values from hwmon, d-bus, or direct driver access to provide readings. Some advance non-sensor features such as fan presence, pwm control, and automatic cpu detection (x86) are also supported.
runtime re-configurable from d-bus (entity-manager or the like)
isolated: each sensor type is isolated into its own daemon, so a bug in one sensor is unlikely to affect another, and single sensor modifications are possible
async single-threaded: uses sdbusplus/asio bindings
multiple data inputs: hwmon, d-bus, direct driver access