hwmon: (pmbus) Convert pmbus drivers to use devm_kzalloc

Marginally less code and eliminate the possibility of memory leaks.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
hwmon: (pmbus) Simplify remove functions

Since devm_kzalloc() is now used to allocate driver memory, the client
driver remove function has no purpose other than to call pmbus_do_remove().
This means we can get rid of it by redefining pmbus_do_remove() to use the
same prototype, and pointing to it directly.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
hwmon: (max34440) Fix resetting temperature history

Temperature history is reset by writing 0x8000 into the peak temperature
register, not 0xffff.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
hwmon: (pmbus) Add more virtual registers

Add PMBUS_VIRT_READ_TEMP_AVG, PMBUS_VIRT_READ_TEMP2_AVG,
PMBUS_VIRT_READ_POUT_AVG, PMBUS_VIRT_READ_POUT_MAX,
and PMBUS_VIRT_RESET_POUT_HISTORY.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
hwmon: (max34440) Add support for 'lowest' output voltage attribute

MAX34440 and compatibles support reporting the lowest measured output voltage.
Add support for it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
hwmon: (max34440) Add support for MAX34446

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
hwmon: (adm1275) Add support for ADM1075

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
hwmon: (pmbus) Add support for TI TPS40400 and TPS40422

TPS40400 and TPS40422 are supported by the generic PMBus driver.
Add device IDs and data sheet references.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
hwmon: (pmbus) Add support for Lineage Power MDT040

MDT040 is supported by the generic PMBus driver. Add device ID and reference to
datasheet. Also mention Lineage Power device support in Kconfig.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
hwmon: (zl6100) Add support for ZL9101M and ZL9117M

ZL9101M and ZL9117M are compatible to ZL6100. Add support to the zl6100 driver.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
hwmon: (max34440) Add support for MAX34460

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
zl6100: Add support for VMON on chips supporting it

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
hwmon: (pmbus) Add support for non-standard status register

Not all PMBus devices support the byte status register at 0x78. Add support for
non-standard status registers to work around this problem.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Align with upstream driver

No alert support in this branch.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Various improvements

Add experimental support for LTC2974 and LTC3883
Improve memory management
add support for additional sensors on some Intersil (Zilker Labs) chips

Signed-off-by: Guenter Roeck <linux@roeck-us.net>