]> git.baikalelectronics.ru Git - kernel.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)
committerJiri Kosina <jkosina@suse.com>
Tue, 14 Jul 2015 20:42:42 +0000 (22:42 +0200)
commit11457d36f04d6b21f0ccb9b743f2e32bb542f643
tree0aa7c167247635f584d3ade01de56a347b6fb051
parentefc80bdf4cdb49bf6a8a3e7a813139c977b7ea7f
HID: cp2112: fix byte order in SMBUS operations

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>
Cc: stable@vger.kernel.org
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-cp2112.c