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)
commit41318a2b82f5d5fe1fb408f6d6e0b22aa557111d
tree1c6ad82b74e789d326e49f505cce27f40eef0749
parent0bd193d62b4270a2a7a09da43ad1034c7ca5b3d3
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: 1ba47da52712 ("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