From patchwork Mon Feb 29 13:12:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Kaneko X-Patchwork-Id: 8453821 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-renesas-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3CE92C0553 for ; Mon, 29 Feb 2016 13:14:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 988A32013D for ; Mon, 29 Feb 2016 13:14:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5A99E20295 for ; Mon, 29 Feb 2016 13:14:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753329AbcB2NOH (ORCPT ); Mon, 29 Feb 2016 08:14:07 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:33300 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751918AbcB2NOG (ORCPT ); Mon, 29 Feb 2016 08:14:06 -0500 Received: by mail-pa0-f44.google.com with SMTP id fl4so92121609pad.0; Mon, 29 Feb 2016 05:14:05 -0800 (PST) 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=ikro88WxIw7VJoOy49MhBi38WJEXJz0p9OkAeZFfFvQ=; b=QTtRDRGZhYy6YL6zJMYZoAd1il+yOHIiLmvYq97LnSCERkjzaQAzKVgO2Tv54q12tS LQ32C1MA3k1NQ2ix3ZI9hf9ckP3bdDF3tuZw8VsmtxKsREtCj/pEs+c+ChvsFgFleZJQ 5INKZTr1VY5qLzlq9RDFrKot5+rtYeCta6znN6DE4Yxl679eunL1YQP250M4Kr5QMi7I Jbm3lm+k+YE5ezTk7B8Tm2Mc9ni9Da+3VTxs0HUSPka9WPlzZADm1cukDXhthbcQZdmR 2e/ZkNZQj9pkbAM6DMq5wxiM6oOpB6Wf918RDk+riziUWie7RJYsqfMntwy2sGyjTQRk akkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ikro88WxIw7VJoOy49MhBi38WJEXJz0p9OkAeZFfFvQ=; b=hvJ5V6u9Z4lcbP7+pC5bM1GfZ6WaJ1trBJE1kmJ2SLEuZ88V8pHjw6vTI9PtxZ7SuV OUZybDnoKexlNAsf4wJOXsZHZrPj6M6WTH2hDdAjqPsgzn6GhZ9wBdIXU1ZZSdQXiMKT O+/X5POaiQRS1il77kgh981ooXT3Taaq/Wp2IpWGFn2NK/WJl8h+FKQJP7edMwBxSAhP UTLvwE6W1z4yZHG5ZewnanyGxMT8wsUqZhPVyevJdmLdVDnm0p5Q8Jv1j3623RwoarS7 3DynXasF2B1t8e2UcWhAc3PEdJdSgZtzJgcL8K91JRDoFSBJdSUMxre19y3GbVy1kYM7 8Haw== X-Gm-Message-State: AD7BkJJ8cWqqm06VwmpyJkDnnbJvD8Pla7wn9c1Xea4PeafAt4Ksr55GsX2MENex9lLUgw== X-Received: by 10.66.121.97 with SMTP id lj1mr10617279pab.51.1456751644875; Mon, 29 Feb 2016 05:14:04 -0800 (PST) Received: from macc.flets-east.jp (p3469131-ipngn19901marunouchi.tokyo.ocn.ne.jp. [153.229.6.131]) by smtp.gmail.com with ESMTPSA id c9sm38150913pfd.90.2016.02.29.05.14.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Feb 2016 05:14:04 -0800 (PST) From: Yoshihiro Kaneko To: linux-media@vger.kernel.org Cc: Guennadi Liakhovetski , Simon Horman , Magnus Damm , linux-renesas-soc@vger.kernel.org Subject: [PATCH/RFC 2/4] media: soc_camera: rcar_vin: Add get_selection callback function Date: Mon, 29 Feb 2016 22:12:41 +0900 Message-Id: <1456751563-21246-3-git-send-email-ykaneko0929@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1456751563-21246-1-git-send-email-ykaneko0929@gmail.com> References: <1456751563-21246-1-git-send-email-ykaneko0929@gmail.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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: Koji Matsuoka Add get_selection callback function because it is required for clipping processing. Signed-off-by: Koji Matsuoka Signed-off-by: Yoshihiro Kaneko --- drivers/media/platform/soc_camera/rcar_vin.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/media/platform/soc_camera/rcar_vin.c b/drivers/media/platform/soc_camera/rcar_vin.c index a22141b..9225992 100644 --- a/drivers/media/platform/soc_camera/rcar_vin.c +++ b/drivers/media/platform/soc_camera/rcar_vin.c @@ -1906,6 +1906,13 @@ static int rcar_vin_init_videobuf2(struct vb2_queue *vq, return vb2_queue_init(vq); } +static int rcar_vin_get_selection(struct soc_camera_device *icd, + struct v4l2_selection *sel) +{ + /* TODO */ + return 0; +} + static struct soc_camera_host_ops rcar_vin_host_ops = { .owner = THIS_MODULE, .add = rcar_vin_add_device, @@ -1920,6 +1927,7 @@ static struct soc_camera_host_ops rcar_vin_host_ops = { .querycap = rcar_vin_querycap, .set_bus_param = rcar_vin_set_bus_param, .init_videobuf2 = rcar_vin_init_videobuf2, + .get_selection = rcar_vin_get_selection, }; #ifdef CONFIG_OF