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>
Thu, 25 May 2017 13:44:46 +0000 (15:44 +0200)
commit3fe116563d5ddc2e3a506eb4b227164e5ccaed23
tree4b5f047a3112921bfca27ae1e76387a9a99139ba
parentf157261b55a40a5fe38259d1dcc0a9ff30987b3c
uwb: fix device quirk on big-endian hosts

commit 41318a2b82f5d5fe1fb408f6d6e0b22aa557111d upstream.

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")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uwb/i1480/dfu/usb.c