From patchwork Fri Apr 19 21:09:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Frank Schaefer X-Patchwork-Id: 18097 X-Patchwork-Delegate: hverkuil@xs4all.nl Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1UTIY0-0000wb-Lg; Fri, 19 Apr 2013 23:08:44 +0200 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.75/mailfrontend-4) with esmtp id 1UTIY0-00051w-9p; Fri, 19 Apr 2013 23:08:44 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754387Ab3DSVIl (ORCPT + 1 other); Fri, 19 Apr 2013 17:08:41 -0400 Received: from mail-we0-f171.google.com ([74.125.82.171]:33145 "EHLO mail-we0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754374Ab3DSVIl (ORCPT ); Fri, 19 Apr 2013 17:08:41 -0400 Received: by mail-we0-f171.google.com with SMTP id i48so3913933wef.2 for ; Fri, 19 Apr 2013 14:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=xoOidnPqKkYDoeVxQ/vfHSEy1oV2RpzfF/Ooyywvnhg=; b=eC7rlIy8MRjeCs4XZ+7Pe/oDZjYdwpfpM+850APQCv0wNDcvN4QbL5Kj9bQt2XeDx4 pv6ZwUAoE2voMjmoitv4DU5c9ZwpoSUwhH+cOwGDMOxyih32qV5Br2JMiRvy9Z+pMJO/ TLl1dQ4zO8AkbAtm0TwrfxDoKqDZq2iPoUOFc8yzzaQMqzHIjGFkuxKlnb527ZsXHl2p BamDRlOtyKybbWNLaWIRDRVoGIOeJPxQgaMfdeQSNMzQUe/Nh4GlvwP3Q9HnOsTUokId ahK3SuMI4yQ6/PVRyPdXUlV4msc/33alx6HMmeTU5REjb/G8TTnSpp+AP4j2oLgJfhmg hWIw== X-Received: by 10.194.176.228 with SMTP id cl4mr29059454wjc.10.1366405719887; Fri, 19 Apr 2013 14:08:39 -0700 (PDT) Received: from Athlon64X2-5000.site (ip-109-91-212-82.unitymediagroup.de. [109.91.212.82]) by mx.google.com with ESMTPS id d47sm25665484eem.9.2013.04.19.14.08.38 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Apr 2013 14:08:39 -0700 (PDT) From: =?UTF-8?q?Frank=20Sch=C3=A4fer?= To: mchehab@redhat.com Cc: linux-media@vger.kernel.org, =?UTF-8?q?Frank=20Sch=C3=A4fer?= Subject: [PATCH] em28xx: add a missing le16_to_cpu conversion Date: Fri, 19 Apr 2013 23:09:46 +0200 Message-Id: <1366405786-2252-1-git-send-email-fschaefer.oss@googlemail.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2013.4.19.210316 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' MULTIPLE_RCPTS 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1100_1199 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, CT_TEXT_PLAIN_UTF8_CAPS 0, DKIM_SIGNATURE 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FRAUD_BODY_WEBMAIL 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MULTIPLE_RCPTS_CC_X2 0, __PHISH_SPEAR_STRUCTURE_1 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS , __YOUTUBE_RCVD 0' commit 61ff5d69 "em28xx: improve em2710/em2820 distinction" missed the le16_to_cpu conversion of the USB vendor ID. Signed-off-by: Frank Schäfer --- drivers/media/usb/em28xx/em28xx-cards.c | 3 ++- 1 Datei geändert, 2 Zeilen hinzugefügt(+), 1 Zeile entfernt(-) diff --git a/drivers/media/usb/em28xx/em28xx-cards.c b/drivers/media/usb/em28xx/em28xx-cards.c index cc63f19..d2ed678 100644 --- a/drivers/media/usb/em28xx/em28xx-cards.c +++ b/drivers/media/usb/em28xx/em28xx-cards.c @@ -2910,7 +2910,8 @@ static int em28xx_init_dev(struct em28xx *dev, struct usb_device *udev, break; case CHIP_ID_EM2820: chip_name = "em2710/2820"; - if (dev->udev->descriptor.idVendor == 0xeb1a) { + if (le16_to_cpu(dev->udev->descriptor.idVendor) + == 0xeb1a) { __le16 idProd = dev->udev->descriptor.idProduct; if (le16_to_cpu(idProd) == 0x2710) chip_name = "em2710";