]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (pmbus) Add pmbus_set_update() function to set update flag
authorErik Rosen <erik.rosen@metormote.com>
Thu, 18 Feb 2021 11:52:48 +0000 (12:52 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 12 Mar 2021 04:41:22 +0000 (20:41 -0800)
commitd85b01e8b47c0d84c2c671148dfeb3ba981bf095
tree1025e79a81861667de6687611d7d23e42cf42233
parentf3cdb092460b7b0a7bf94aef096d34a1eb9ad3a8
hwmon: (pmbus) Add pmbus_set_update() function to set update flag

For the STPDDC60 chip, the vout alarm-limits are represented as an offset
relative to the commanded output voltage. This means that the limits are
dynamic and must not be cached by the pmbus driver. This patch adds a
pmbus_set_sensor() function to pmbus_core to be able to set the update flag
on selected sensors after auto-detection of limit attributes.

Signed-off-by: Erik Rosen <erik.rosen@metormote.com>
Link: https://lore.kernel.org/r/20210218115249.28513-2-erik.rosen@metormote.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus.h
drivers/hwmon/pmbus/pmbus_core.c