From patchwork Wed Aug 22 21:03:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sylwester Nawrocki X-Patchwork-Id: 1363361 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id BB8AFDF280 for ; Wed, 22 Aug 2012 21:03:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933346Ab2HVVDp (ORCPT ); Wed, 22 Aug 2012 17:03:45 -0400 Received: from mail-we0-f174.google.com ([74.125.82.174]:51715 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933330Ab2HVVDo (ORCPT ); Wed, 22 Aug 2012 17:03:44 -0400 Received: by weyx8 with SMTP id x8so19786wey.19 for ; Wed, 22 Aug 2012 14:03:43 -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; bh=d/zGSi5f/wPq0eNdOqcUohijWCJnqjocoAtRyW/zkpI=; b=OfOCPHv5CpMuJP4Xay9QQJJ21m5r7Bm5Q+Xcgx9vxQvz/3IzfbfSPvIl2xtYrVVkz4 s3gE3JX0wkmmYP2GPlQP29YrPPASQLsrqtI99TG9RVLJZfMc3o9fkAG7oi1gxwRW9I++ TAB2/qwu1FnejQFw6ff6CSE8RBXw/FzxeAV9Dw/nin1AqEE8jOfzuCTczfe3fB0Ks0AI GF47L8UG6KcSaowhyfhS1hyGQ+L6wrem1zgFKaiSbwABfI1KreIWlxeddLVYzk2ZC2Rt vZzwnTQS9rggYH/i3HRLQPMMscCZEK9iTXWiybvEzZCNqzaTW7/Uj3LwASdPa1cjPdqO Fn4A== Received: by 10.180.82.39 with SMTP id f7mr8913212wiy.2.1345669423737; Wed, 22 Aug 2012 14:03:43 -0700 (PDT) Received: from localhost.localdomain (031011252076.warszawa.vectranet.pl. [31.11.252.76]) by mx.google.com with ESMTPS id z11sm15335637wiv.10.2012.08.22.14.03.42 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Aug 2012 14:03:43 -0700 (PDT) From: Sylwester Nawrocki To: g.liakhovetski@gmx.de Cc: linux-media@vger.kernel.org, Sylwester Nawrocki Subject: [PATCH] soc-camera: Use new selection target definitions Date: Wed, 22 Aug 2012 23:03:30 +0200 Message-Id: <1345669410-31836-1-git-send-email-sylvester.nawrocki@gmail.com> X-Mailer: git-send-email 1.7.4.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Replace the deprecated V4L2_SEL_TGT_*_ACTIVE selection target names with their new unified counterparts. Compatibility definitions are already in linux/v4l2-common.h. Signed-off-by: Sylwester Nawrocki --- drivers/media/platform/soc_camera/soc_camera.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/soc_camera/soc_camera.c b/drivers/media/platform/soc_camera/soc_camera.c index 10b57f8..ba62960 100644 --- a/drivers/media/platform/soc_camera/soc_camera.c +++ b/drivers/media/platform/soc_camera/soc_camera.c @@ -950,11 +950,11 @@ static int soc_camera_s_selection(struct file *file, void *fh, /* In all these cases cropping emulation will not help */ if (s->type != V4L2_BUF_TYPE_VIDEO_CAPTURE || - (s->target != V4L2_SEL_TGT_COMPOSE_ACTIVE && - s->target != V4L2_SEL_TGT_CROP_ACTIVE)) + (s->target != V4L2_SEL_TGT_COMPOSE && + s->target != V4L2_SEL_TGT_CROP)) return -EINVAL; - if (s->target == V4L2_SEL_TGT_COMPOSE_ACTIVE) { + if (s->target == V4L2_SEL_TGT_COMPOSE) { /* No output size change during a running capture! */ if (is_streaming(ici, icd) && (icd->user_width != s->r.width || @@ -974,7 +974,7 @@ static int soc_camera_s_selection(struct file *file, void *fh, ret = ici->ops->set_selection(icd, s); if (!ret && - s->target == V4L2_SEL_TGT_COMPOSE_ACTIVE) { + s->target == V4L2_SEL_TGT_COMPOSE) { icd->user_width = s->r.width; icd->user_height = s->r.height; if (!icd->streamer)