hwmon: (k10temp) Use bitops
authorGuenter Roeck <linux@roeck-us.net>
Sun, 29 Apr 2018 15:39:24 +0000 (08:39 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 23 Jan 2020 21:15:11 +0000 (13:15 -0800)
commita6d210da1a01cb5c3fd4d2dd7b5920642f66677c
treeccae64da806fd31339bf5104a2ca49ed221658ad
parent7992db7cb9d133bc6d3d1731fcd72fe2bec944d4
hwmon: (k10temp) Use bitops

Using bitops makes bit masks and shifts easier to read.

Tested-by: Brad Campbell <lists2009@fnarfbargle.com>
Tested-by: Bernhard Gebetsberger <bernhard.gebetsberger@gmx.at>
Tested-by: Holger Kiehl <holger.kiehl@dwd.de>
Tested-by: Michael Larabel <michael@phoronix.com>
Tested-by: Jonathan McDowell <noodles@earth.li>
Tested-by: Ken Moffat <zarniwhoop73@googlemail.com>
Tested-by: Darren Salt <devspam@moreofthesa.me.uk>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/k10temp.c