Add support for reading EIN or EOUT registers and expose power calculated from energy. This is more accurate than PIN and POUT power readings. Readings are exposed in new hwmon files power1_average and power2_average. Also add support for QUERY command that is needed to check availability of EIN and EOUT reads and its data format. Only direct data format is supported due to lack of test devices supporting other formats. Kallas, Pawel (3): hwmon: (pmbus) add support for QUERY command hwmon: (pmbus) refactor sensor initialization hwmon: (pmbus) add EIN and EOUT readings Documentation/hwmon/pmbus-core.rst | 7 + drivers/hwmon/pmbus/pmbus.c | 20 +++ drivers/hwmon/pmbus/pmbus.h | 19 +++ drivers/hwmon/pmbus/pmbus_core.c | 261 +++++++++++++++++++++++++++-- 4 files changed, 291 insertions(+), 16 deletions(-) base-commit: 7c1de25c06f31b04744beae891baf147af9ba0cb