From patchwork Fri May 12 10:01:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 9723821 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 302F460348 for ; Fri, 12 May 2017 10:02:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22DBA27EED for ; Fri, 12 May 2017 10:02:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1480728735; Fri, 12 May 2017 10:02:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F35F927EED for ; Fri, 12 May 2017 10:02:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757846AbdELKB7 (ORCPT ); Fri, 12 May 2017 06:01:59 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:35469 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757691AbdELKB7 (ORCPT ); Fri, 12 May 2017 06:01:59 -0400 Received: by mail-wr0-f194.google.com with SMTP id g12so6952015wrg.2 for ; Fri, 12 May 2017 03:01:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=SQFGM71pJ5zCG6dwwSnQf9FX7aQWFUjz5he+1zLYwus=; b=pm25D05uEtt6rDqNCRuE09QmzBJA/cjHy0TXxrn6N2yNG2+08QLk0WN7WALxvHKwrt IYUcO8/ODN2rWmzDL46B0p5Cn9DLtfCAh+oXSi73AXVi5VHa1gwTOmSD8p8GgWDIItjG 9tu1Un/V0VFxzhnbX0u6fWr3MFZ2Kj0xGsyQByukwsQifzzAXjSo+5RbPj06hAnLn76y EDIYQ76eufZumUhf0HYvTNvrt3e3cKyjSO0VFoOijDGdOaD4JN3biWXHHAQBKdBAhfPZ 1xjzPqWwIohl3do2IuUTZJuG6usm9Vi0EqpuiNnCCtRdkIxZ5S0bOCEzQqE4y+m6ukfH 4f3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=SQFGM71pJ5zCG6dwwSnQf9FX7aQWFUjz5he+1zLYwus=; b=KThiLhLaP90ORTdgH+B79yz+6Mfm9lLymKoZzmeIXxyKKqiGXHkPQqqbw2PsRuwrE9 zi7oxy2qkqpuuF7l1d9m1YErSfaVuYzHZrdbCnEFXVCy5dtIQIXPqAc6GKffVKRuWCHK ORe8TyAViK2uPCcZNfkXnobJ/Vaqsl6jloCtX+RKGZr/DOqaNDmFz+JT/koU5w4vis+u 9zR+BoQmPxLz8aPlcPJhymNiGsN+RnBVZoVPG2/djb4bScD8ucPkHGZaVuGvQ/w5W7BZ KBwURVQ4H//6LJOaI1fMlv+567eZtgFR49h2NTFaqw81waxgsKxso9N3lnonZD8HjZVY 8JXA== X-Gm-Message-State: AODbwcCgs4yJRv52bxX2p9QQPAZ0yCRkmdQf1pxFR1w22NHk3+AqPASd PTmSJWpKFfz0cRUdsVs= X-Received: by 10.46.83.75 with SMTP id t11mr805816ljd.102.1494583317784; Fri, 12 May 2017 03:01:57 -0700 (PDT) Received: from xi.terra (c-42c8e255.07-184-6d6c6d4.cust.bredbandsbolaget.se. [85.226.200.66]) by smtp.gmail.com with ESMTPSA id i28sm476199ljb.63.2017.05.12.03.01.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 May 2017 03:01:57 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.89) (envelope-from ) id 1d97OR-0000PJ-Pp; Fri, 12 May 2017 12:01:51 +0200 From: Johan Hovold To: Hans Verkuil Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org, Johan Hovold Subject: [PATCH] [media] usbvision: add missing USB-descriptor endianness conversions Date: Fri, 12 May 2017 12:01:30 +0200 Message-Id: <20170512100130.1527-1-johan@kernel.org> X-Mailer: git-send-email 2.13.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the missing endianness conversions to a debug call printing the USB device-descriptor idVendor and idProduct fields during probe. Signed-off-by: Johan Hovold --- drivers/media/usb/usbvision/usbvision-video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/usbvision/usbvision-video.c b/drivers/media/usb/usbvision/usbvision-video.c index f9c3325aa4d4..756322c4ac05 100644 --- a/drivers/media/usb/usbvision/usbvision-video.c +++ b/drivers/media/usb/usbvision/usbvision-video.c @@ -1427,8 +1427,8 @@ static int usbvision_probe(struct usb_interface *intf, int model, i, ret; PDEBUG(DBG_PROBE, "VID=%#04x, PID=%#04x, ifnum=%u", - dev->descriptor.idVendor, - dev->descriptor.idProduct, ifnum); + le16_to_cpu(dev->descriptor.idVendor), + le16_to_cpu(dev->descriptor.idProduct), ifnum); model = devid->driver_info; if (model < 0 || model >= usbvision_device_data_size) {