]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (w83795) Get rid of VRLSB_SHIFT
authorJean Delvare <khali@linux-fr.org>
Thu, 28 Oct 2010 18:31:47 +0000 (20:31 +0200)
committerJean Delvare <khali@endymion.delvare>
Thu, 28 Oct 2010 18:31:47 +0000 (20:31 +0200)
commit92eb715cabe8c446878a9d4cc229aca7bc7ab302
treea4b6ec7627b17ecfc37eb700d2ba29fa10a52d74
parent65b058b68d158f346d1f7f208a9789274f902154
hwmon: (w83795) Get rid of VRLSB_SHIFT

VRLSB_SHIFT is a non-sense, the actual shift depends on the sensor
type (fans need 4, other sensors need 6). Get rid of it to prevent
any confusion. Also get rid of the useless masking, the meaningful
bits are always the MSb so there's nothing to mask out after
shifting.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/w83795.c