hwmon: (max31827) Update bits with shutdown_write()
authorDaniel Matyas <daniel.matyas@analog.com>
Tue, 31 Oct 2023 18:21:55 +0000 (20:21 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 11 Dec 2023 14:42:50 +0000 (06:42 -0800)
commit8a0806df46b62e88793cab0035da477092bda09a
treea491c7a142d90e9be7ceada37d13d6c1541b54ed
parentcbeb1d2acf5d28debbe710dff6357c859eee061a
hwmon: (max31827) Update bits with shutdown_write()

Added 'mask' parameter to the shutdown_write() function. Now it can
either write or update bits, depending on the value of mask. This is
needed, because for alarms a write is necessary, but for resolution only
the resolution bits should be updated.

Signed-off-by: Daniel Matyas <daniel.matyas@analog.com>
Link: https://lore.kernel.org/r/20231031182158.124608-3-daniel.matyas@analog.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/max31827.c