From patchwork Fri May 16 13:33:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 4193441 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3AAB19F489 for ; Fri, 16 May 2014 14:03:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 680222026F for ; Fri, 16 May 2014 14:03:32 +0000 (UTC) Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3288B202E9 for ; Fri, 16 May 2014 14:03:31 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s4GE2VEE032434; Fri, 16 May 2014 09:02:31 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s4GE2VOu005730; Fri, 16 May 2014 09:02:31 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Fri, 16 May 2014 09:02:30 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s4GE2VWt022524; Fri, 16 May 2014 09:02:31 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id F3B9E80626; Fri, 16 May 2014 09:02:30 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflxv17.itg.ti.com (dflxv17.itg.ti.com [128.247.5.93]) by linux.omap.com (Postfix) with ESMTP id A152F80627 for ; Fri, 16 May 2014 08:42:36 -0500 (CDT) Received: from neches.ext.ti.com (neches.ext.ti.com [192.91.81.29]) by dflxv17.itg.ti.com (8.14.3/8.13.8) with ESMTP id s4GDgaXb015015 for ; Fri, 16 May 2014 08:42:36 -0500 Received: from mail6.bemta8.messagelabs.com (mail6.bemta8.messagelabs.com [216.82.243.55]) by neches.ext.ti.com (8.13.7/8.13.7) with ESMTP id s4GDgZvL009458 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 16 May 2014 08:42:35 -0500 Received: from [216.82.241.195:33793] by server-15.bemta-8.messagelabs.com id 58/DF-11047-BC516735; Fri, 16 May 2014 13:42:35 +0000 X-Env-Sender: prabhakar.csengg@gmail.com X-Msg-Ref: server-15.tower-119.messagelabs.com!1400247753!23939449!1 X-Originating-IP: [209.85.160.42] X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG, ML_RADAR_SPEW_LINKS_14,spamassassin: X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 30192 invoked from network); 16 May 2014 13:42:34 -0000 Received: from mail-pb0-f42.google.com (HELO mail-pb0-f42.google.com) (209.85.160.42) by server-15.tower-119.messagelabs.com with RC4-SHA encrypted SMTP; 16 May 2014 13:42:34 -0000 Received: by mail-pb0-f42.google.com with SMTP id md12so2639153pbc.29 for ; Fri, 16 May 2014 06:42:33 -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:in-reply-to:references; bh=gBWU9LMqPMbqPBzQpV3CN/1TmmvCjZnXFBQqGBRD9cw=; b=xLNns7smkJ/wFQ8NEkWyK+27aPd9S4lvl1dGoXeVq19iNaqpLra4gXYSMp31chKy0Q xwmcot9J4wOZZ0N5rYsLtawEItDv+TneLGrEHTSThIKZ19u4sYfKdolJ7C1LDb6phmv7 pmjdaSuXWHMTYbUl4BlWjuX09gNlGoKMl2Z0/BdDg6qqRuKPtiq0kWpSGH+3zCUGUj2T n93MM5FGvd6xemFV78erkYxp5dDFrnz9RpE+SphnBwCq7gK1RpHRHmzF3mU+3Le++gjh hz2S1XpFhEusLGFatCBgCHsdY7e/3lwdNCIemSmI7svLs/HlWO3t0pGxaIJOvJIYhGCz w0uw== X-Received: by 10.66.236.163 with SMTP id uv3mr21167069pac.18.1400247753566; Fri, 16 May 2014 06:42:33 -0700 (PDT) Received: from localhost.localdomain ([27.107.45.22]) by mx.google.com with ESMTPSA id cj1sm34699547pac.40.2014.05.16.06.42.28 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 16 May 2014 06:42:32 -0700 (PDT) From: "Lad, Prabhakar" To: LMML , Hans Verkuil Subject: [PATCH v5 42/49] media: davinci: vpif_capture: drop cropcap Date: Fri, 16 May 2014 19:03:48 +0530 Message-ID: <1400247235-31434-45-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1400247235-31434-1-git-send-email-prabhakar.csengg@gmail.com> References: <1400247235-31434-1-git-send-email-prabhakar.csengg@gmail.com> CC: DLOS , LKML 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@linux.davincidsp.com X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Lad, Prabhakar" this patch drops cropcap as this driver doesnt support cropping. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/drivers/media/platform/davinci/vpif_capture.c b/drivers/media/platform/davinci/vpif_capture.c index e967cf7..113d333 100644 --- a/drivers/media/platform/davinci/vpif_capture.c +++ b/drivers/media/platform/davinci/vpif_capture.c @@ -1100,30 +1100,6 @@ static int vpif_querycap(struct file *file, void *priv, } /** - * vpif_cropcap() - cropcap handler - * @file: file ptr - * @priv: file handle - * @crop: ptr to v4l2_cropcap structure - */ -static int vpif_cropcap(struct file *file, void *priv, - struct v4l2_cropcap *crop) -{ - struct video_device *vdev = video_devdata(file); - struct channel_obj *ch = video_get_drvdata(vdev); - struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX]; - - if (V4L2_BUF_TYPE_VIDEO_CAPTURE != crop->type) - return -EINVAL; - - crop->bounds.left = 0; - crop->bounds.top = 0; - crop->bounds.height = common->height; - crop->bounds.width = common->width; - crop->defrect = crop->bounds; - return 0; -} - -/** * vpif_enum_dv_timings() - ENUM_DV_TIMINGS handler * @file: file ptr * @priv: file handle @@ -1308,7 +1284,6 @@ static const struct v4l2_ioctl_ops vpif_ioctl_ops = { .vidioc_s_std = vpif_s_std, .vidioc_g_std = vpif_g_std, - .vidioc_cropcap = vpif_cropcap, .vidioc_enum_dv_timings = vpif_enum_dv_timings, .vidioc_query_dv_timings = vpif_query_dv_timings, .vidioc_s_dv_timings = vpif_s_dv_timings,