Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] em28xx: add a missing le16_to_cpu conversion

commit 61ff5d69 "em28xx: improve em2710/em2820 distinction" missed the
le16_to_cpu conversion of the USB vendor ID.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Frank Schaefer and committed by
Mauro Carvalho Chehab
1552fb34 16af690f

+2 -1
+2 -1
drivers/media/usb/em28xx/em28xx-cards.c
··· 2910 2910 break; 2911 2911 case CHIP_ID_EM2820: 2912 2912 chip_name = "em2710/2820"; 2913 - if (dev->udev->descriptor.idVendor == 0xeb1a) { 2913 + if (le16_to_cpu(dev->udev->descriptor.idVendor) 2914 + == 0xeb1a) { 2914 2915 __le16 idProd = dev->udev->descriptor.idProduct; 2915 2916 if (le16_to_cpu(idProd) == 0x2710) 2916 2917 chip_name = "em2710";