]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
hwmon: (f75375s) Fix bit shifting in f75375_write16
authorNikolaus Schulz <schulz@macnetix.de>
Wed, 8 Feb 2012 17:56:10 +0000 (18:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Mar 2012 17:49:19 +0000 (09:49 -0800)
commit5fe6345243aba30d20772c8f04cce098c6752425
tree95240972b53125c8fb61561f1b7a1dc6fb74596c
parent0f896131dfc21ce0f4baad21db7672eaf6a183d2
hwmon: (f75375s) Fix bit shifting in f75375_write16

commit eb2f255b2d360df3f500042a2258dcf2fcbe89a2 upstream.

In order to extract the high byte of the 16-bit word, shift the word to
the right, not to the left.

Signed-off-by: Nikolaus Schulz <mail@microschulz.de>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/f75375s.c