]> git.ipfire.org Git - people/arne_f/kernel.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>
Mon, 20 Feb 2012 20:48:10 +0000 (12:48 -0800)
commiteafbec56be4c3cfd8f3b5098a0c5f7397a1e48b0
treec4eebc8cd2d8daf5e04928fe543114538186b407
parent0eac4fa19d910c7ce80e48b89eaec1f08bc816ef
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