]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: cp2112: fix byte order in SMBUS operations
authorEllen Wang <ellen@cumulusnetworks.com>
Fri, 10 Jul 2015 05:04:31 +0000 (22:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Sep 2015 17:10:55 +0000 (10:10 -0700)
commit6fafee2a79551ccefd6f3447fef4e9ee7c86f9f4
tree215474afeb7b92af658b86b28a84bd04c5ef9173
parentcd3d4797843c82591b3c2db2dfb8e30d864b75b5
HID: cp2112: fix byte order in SMBUS operations

commit 29e2d6d1f6f61ba2b5cc9d9867e01d8c31a6c4f7 upstream.

Change all occurrences of be16 to le16 in cp2112_xfer(),
because SMBUS words are little endian, not big endian.

Signed-off-by: Ellen Wang <ellen@cumulusnetworks.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-cp2112.c