hwmon: (sch5627) Use bit macros when accessing the control register
authorArmin Wolf <W_Armin@gmx.de>
Thu, 7 Sep 2023 05:26:35 +0000 (07:26 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 27 Oct 2023 14:27:23 +0000 (07:27 -0700)
commit7f0b28e0653f36b51542d25dd54ed312c397ecfc
treea300c338279007b3ff7d0879bab62658bd44b25d
parent27887b06597bbfef8924985d1ed21db3ab01c417
hwmon: (sch5627) Use bit macros when accessing the control register

Use bit macros then accessing SCH5627_REG_CTRL, so that people
do not need to look at the datasheet to find out what each bit
does.

Tested on a Fujitsu Esprimo P720.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20230907052639.16491-2-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/sch5627.c