]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
hwmon: (jc42) Simplify hysteresis mask
authorJean Delvare <khali@linux-fr.org>
Thu, 26 Jul 2012 20:13:47 +0000 (22:13 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 27 Jul 2012 20:59:22 +0000 (13:59 -0700)
commit2ccc8731e5054058d5fb990744b4f72a79018d34
tree10f493b1ba750d43f61657232cc217721a94fb79
parent9baeb8fdd7e1e78973ad19a6d7e2bcf7dfeb2498
hwmon: (jc42) Simplify hysteresis mask

Define JC42_CFG_HYST_MASK as the mask _before_ shifting instead of
after shifting. This simplifies the current code slightly, and will
simplify the code to come even more.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/jc42.c