From patchwork Sun Mar 29 12:37:47 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janne Grunau X-Patchwork-Id: 608 Return-path: Envelope-to: mchehab@infradead.org Delivery-date: Sun, 29 Mar 2009 12:38:18 +0000 Received: from vger.kernel.org ([209.132.176.167]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1LnuHB-0001Um-Ae; Sun, 29 Mar 2009 12:38:14 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753326AbZC2MiJ (ORCPT + 1 other); Sun, 29 Mar 2009 08:38:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753351AbZC2MiJ (ORCPT ); Sun, 29 Mar 2009 08:38:09 -0400 Received: from tichy.grunau.be ([85.131.189.73]:52204 "EHLO tichy.grunau.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753326AbZC2MiI (ORCPT ); Sun, 29 Mar 2009 08:38:08 -0400 Received: from localhost (unknown [78.52.195.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tichy.grunau.be (Postfix) with ESMTPSA id 6D8F090002; Sun, 29 Mar 2009 14:37:45 +0200 (CEST) Date: Sun, 29 Mar 2009 14:37:47 +0200 From: Janne Grunau To: linux-media@vger.kernel.org Cc: Hans Verkuil Subject: [PATCH 1 of 6] v4l: use usb_interface for v4l2_device_register Message-ID: <20090329123747.GB637@aniel> References: MIME-Version: 1.0 Content-Disposition: inline; filename="v4l2_device_usb_interface-1.patch" In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org # HG changeset patch # User Janne Grunau # Date 1238189646 -3600 # Node ID 602a8fff1ba466ec4fb4816d0fb0725c8650c311 # Parent b1596c6517c925abd1e683e86592af1aedf9de06 v4l: use usb_interface for v4l2_device_register From: Janne Grunau If usb_interface.dev is used as dev parameter for v4l2_device_register v4l2_dev.name contains the v4l driver/module name and usb device and interface instead of a simple "usb x-y". It also matches the recommendation to set the parent devices for usb drivers. Priority: normal Signed-off-by: Janne Grunau diff -r b1596c6517c9 -r 602a8fff1ba4 linux/Documentation/video4linux/v4l2-framework.txt --- a/linux/Documentation/video4linux/v4l2-framework.txt Thu Mar 26 20:47:48 2009 +0000 +++ b/linux/Documentation/video4linux/v4l2-framework.txt Fri Mar 27 22:34:06 2009 +0100 @@ -90,7 +90,7 @@ NULL, then you *must* setup v4l2_dev->name before calling v4l2_device_register. The first 'dev' argument is normally the struct device pointer of a pci_dev, -usb_device or platform_device. It is rare for dev to be NULL, but it happens +usb_interface or platform_device. It is rare for dev to be NULL, but it happens with ISA devices or when one device creates multiple PCI devices, thus making it impossible to associate v4l2_dev with a particular parent. -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html