hwmon: (pmbus_core) Allow to hook PMBUS_SMBALERT_MASK
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Tue, 30 Jan 2024 15:29:03 +0000 (20:59 +0530)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 11 Feb 2024 21:43:09 +0000 (13:43 -0800)
commit9c6df63a66c1fdf99d6e1ad278d140080c724120
tree1b0e49c34f961e827dbab698b4129ff132c539b6
parent7a0564448a861952e9dc032de146abd19ea5a096
hwmon: (pmbus_core) Allow to hook PMBUS_SMBALERT_MASK

Use _pmbus_write_word_data to allow intercepting writes to
PMBUS_SMBALERT_MASK in the custom chip specific code.

This is required for MP2971/MP2973 which doesn't follow the
PMBUS specification for PMBUS_SMBALERT_MASK.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com>
Link: https://lore.kernel.org/r/20240130152903.3651341-1-naresh.solanki@9elements.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus_core.c