From patchwork Mon Oct 22 12:27:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 1625521 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by patchwork2.kernel.org (Postfix) with ESMTP id 2F7B8DF2F5 for ; Mon, 22 Oct 2012 12:28:22 +0000 (UTC) Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id q9MCSL5N012785 for ; Mon, 22 Oct 2012 07:28:21 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id q9MCSLvF032185 for ; Mon, 22 Oct 2012 07:28:21 -0500 Received: from dlelxv24.itg.ti.com (172.17.1.199) by dfle72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.1.323.3; Mon, 22 Oct 2012 07:28:21 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv24.itg.ti.com (8.13.8/8.13.8) with ESMTP id q9MCSLSs002218 for ; Mon, 22 Oct 2012 07:28:21 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 5936280628 for ; Mon, 22 Oct 2012 07:28:21 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp51.itg.ti.com (dflp51.itg.ti.com [128.247.22.94]) by linux.omap.com (Postfix) with ESMTP id 8D5E680626 for ; Mon, 22 Oct 2012 07:28:08 -0500 (CDT) Received: from medina.ext.ti.com (medina.ext.ti.com [192.91.81.31]) by dflp51.itg.ti.com (8.13.7/8.13.8) with ESMTP id q9MCS8dY002985 for ; Mon, 22 Oct 2012 07:28:08 -0500 (CDT) Received: from psmtp.com (na3sys009amx208.postini.com [74.125.149.48]) by medina.ext.ti.com (8.13.7/8.13.7) with SMTP id q9MCS7WS012307 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 22 Oct 2012 07:28:07 -0500 Received: from mail-da0-f45.google.com ([209.85.210.45]) (using TLSv1) by na3sys009amx208.postini.com ([74.125.148.10]) with SMTP; Mon, 22 Oct 2012 08:28:08 EDT Received: by mail-da0-f45.google.com with SMTP id n15so1296610dad.4 for ; Mon, 22 Oct 2012 05:28:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=hD8L7AgPJ10WIYLloezDNzNrzS00qYrhvC+/Xt0UZRM=; b=KwVyZ0FjqDKJYDkeEwY3b23pg4Ww5mjuUVK7Anbin0Y/jZ9cB2mP1GJ9QPAASaS3UG npR7cfWdbbM36Vy78FpLvZ93nzRjyFVkC2LlBO0g8GCzCW/8C2Ro0XJivN/VAypAYO4h v6kqnlVKdW58kT6IEk2KHJnhV2A0oZhCPFgYnUh033ezsS8nylv/6QHnjyEKWuEgfbXR brbTYIpd0cxA4IWhtAnWMRw5OQYU6CY/wTOmq/NKUF9Br4KuGUh7YcOx25Yd0Dwxcu2h G/G6vLwVD9Ez2VEsQ7IX6OaqHNS2N7T2VWas5PV3d6kGLB7y3K3vlxp3cjhIXeJKMquB xV+A== Received: by 10.68.203.227 with SMTP id kt3mr7549776pbc.13.1350908887237; Mon, 22 Oct 2012 05:28:07 -0700 (PDT) Received: from localhost.localdomain ([122.166.13.141]) by mx.google.com with ESMTPS id ok8sm3233564pbb.42.2012.10.22.05.28.03 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 22 Oct 2012 05:28:06 -0700 (PDT) From: Prabhakar Lad To: LMML Subject: [PATCH RESEND 2/2] media: davinci: vpbe: set device capabilities Date: Mon, 22 Oct 2012 17:57:14 +0530 Message-ID: <1350908834-11619-3-git-send-email-prabhakar.lad@ti.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1350908834-11619-1-git-send-email-prabhakar.lad@ti.com> References: <1350908834-11619-1-git-send-email-prabhakar.lad@ti.com> X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S:44.37498/99.90000 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 ) X-pstn-dkim: 1 skipped:not-enabled X-pstn-settings: 2 (0.5000:0.0050) s cv GT3 gt2 gt1 r p m c X-pstn-addresses: from [82/3] CC: DLOS , LKML , Mauro Carvalho Chehab X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: Errors-To: davinci-linux-open-source-bounces+patchwork-davinci=patchwork.kernel.org@linux.davincidsp.com From: Lad, Prabhakar set device_caps and also change the driver and bus_info to proper values as per standard. Signed-off-by: Lad, Prabhakar Signed-off-by: Manjunath Hadli --- drivers/media/platform/davinci/vpbe_display.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/davinci/vpbe_display.c b/drivers/media/platform/davinci/vpbe_display.c index 974957f..2bfde79 100644 --- a/drivers/media/platform/davinci/vpbe_display.c +++ b/drivers/media/platform/davinci/vpbe_display.c @@ -702,9 +702,12 @@ static int vpbe_display_querycap(struct file *file, void *priv, struct vpbe_device *vpbe_dev = fh->disp_dev->vpbe_dev; cap->version = VPBE_DISPLAY_VERSION_CODE; - cap->capabilities = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING; - strlcpy(cap->driver, VPBE_DISPLAY_DRIVER, sizeof(cap->driver)); - strlcpy(cap->bus_info, "platform", sizeof(cap->bus_info)); + cap->device_caps = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING; + cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS; + snprintf(cap->driver, sizeof(cap->driver), "%s", + dev_name(vpbe_dev->pdev)); + snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", + dev_name(vpbe_dev->pdev)); strlcpy(cap->card, vpbe_dev->cfg->module_name, sizeof(cap->card)); return 0;