hwmon: (jc42) Consistently use bit and bitfield macros in the driver
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Mon, 31 Oct 2022 21:51:40 +0000 (22:51 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 5 Dec 2022 00:45:02 +0000 (16:45 -0800)
commit78d448a3725584b7c46d3d881035943f759135fd
treed542d3757810447287add66cbb5531e76c51a01f
parentdaec55ce62ad0bb6948c8edf84e7ec3b95720177
hwmon: (jc42) Consistently use bit and bitfield macros in the driver

Use BIT() and GENMASK() macros for defining the bitfields inside the
registers. Also use FIELD_GET() and FIELD_PREP() where appropriate. This
makes the coding style within the driver consistent. No functional
changes intended.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/jc42.c