]> git.baikalelectronics.ru Git - kernel.git/commit
uwb: fix device quirk on big-endian hosts
authorJohan Hovold <johan@kernel.org>
Fri, 12 May 2017 10:06:32 +0000 (12:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2017 09:27:41 +0000 (11:27 +0200)
commite464f21897e52a5233602e61f7bfb26c9999ce25
tree1c6ad82b74e789d326e49f505cce27f40eef0749
parent596511fb798169986554fb9e74f95d012e9dbcc9
uwb: fix device quirk on big-endian hosts

Add missing endianness conversion when using the USB device-descriptor
idProduct field to apply a hardware quirk.

Fixes: 3179baa460b3 ("uwb: add the i1480 DFU driver")
Cc: stable <stable@vger.kernel.org> # 2.6.28
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uwb/i1480/dfu/usb.c