Skip to contentSkip to conversation

hwmon: (pmbus) Add IEEE 754 half precision support to PMBus core

PATCH New Guenter Roeck 1 participant 1 message Mar 14, 2019 Hardware monitoring

lore
Share & tools
lore

Guenter Roeck

author maintainer
#0 lore raw

PATCH 1/1 hwmon: (pmbus) Add IEEE 754 half precision support to PMBus core

PMBus v1.3.1 adds IEEE 754 half precision as additional data format. Add support for it.

Cc Christian Grönke <[email protected]>
---
 drivers/hwmon/pmbus/pmbus.h      |   2 +-
 drivers/hwmon/pmbus/pmbus_core.c | 142 +++++++++++++++++++++++++++++++++++++--
 2 files changed, 139 insertions(+), 5 deletions(-)
drivers/hwmon/pmbus/pmbus.h +1 -1
index 1d24397d36ec..6477eb433790 100644
@@ -374,7 +374,7 @@ enum pmbus_sensor_classes {
 
 #define PMBUS_PAGE_VIRTUAL	BIT(31)
 
-enum pmbus_data_format { linear = 0, direct, vid };
+enum pmbus_data_format { linear = 0, ieee754, direct, vid };
 enum vrm_version { vr11 = 0, vr12, vr13 };
 
 struct pmbus_driver_info {
drivers/hwmon/pmbus/pmbus_core.c +138 -4

182 lines not on this page · raw message

Signature · 1 line
2.7.4