From patchwork Mon Feb 29 13:12:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Kaneko X-Patchwork-Id: 8453841 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 BF4D7C0553 for ; Mon, 29 Feb 2016 13:14:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 282BF20263 for ; Mon, 29 Feb 2016 13:14:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7D63F20253 for ; Mon, 29 Feb 2016 13:14:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751918AbcB2NOJ (ORCPT ); Mon, 29 Feb 2016 08:14:09 -0500 Received: from mail-pf0-f173.google.com ([209.85.192.173]:33432 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753434AbcB2NOI (ORCPT ); Mon, 29 Feb 2016 08:14:08 -0500 Received: by mail-pf0-f173.google.com with SMTP id 124so30732833pfg.0; Mon, 29 Feb 2016 05:14:08 -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=CeFOaGam1T/4ntST/14Vv+fW4uBgf077dhVb+Q8yiCA=; b=0PUUlxwY6+beRrE93SSqM98WNLciSVSQYGr1n38bAchGoXWX9BhMrmogqDghl/L7aL Rpp7+Orz2ZoVzXBXno5xkHIVABGUOcVP57eQA7YvxWBp9EnIP2L5a5yS+Q8eEtiOdvW1 RBKLjOV7OfSFawa1cNJ4lSCgbyzvhDtDWUekzsUhr6crjZ7XfzmHk6x1cMHu9kWdKr74 Mx6C46Nya1LwCrpt/55jCVP8ovbwcPVIjyCoTNdf7AICfqi0y7g7s7tBHAbxOGAorjMG Eql7bPzm2oWDBYXzuBm/IPrD5IJN5kLU7wwq7hjtHLUdUkLyW/8x+Q+x9y/7G6N6Kk1g mT1g== 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=CeFOaGam1T/4ntST/14Vv+fW4uBgf077dhVb+Q8yiCA=; b=f5RTqLx029t6kINBXqTSUsrX1NdgOAXjkC+hGYh6M6QQQrIr68ZAzPvxeDyJcvXgcp j9mq0dPpXIVacBLXVliRnoxSa0z6lZDZvalY1aDOoL8ZbgDh4z6S2xKQUanNp48utZpK wMBde1vefmYgqeCHU1Wvau7DdpzLwca2Ve9P60MnSA0xwxBr8kvaxLU/B1eagLki7JrG iVMfBqXrgzIIgpT8URwsK6235hdB+VT+eu7xkoVNp2SALnvRIqRjcmcRnQ3pFcHvOr1T UdCNwbw94VYk7vQADr6Ybnw0VrxuKh2LW7ISWGstCjtwHwnGhKwDUdPTw3t2UG4dr2M8 nOCg== X-Gm-Message-State: AD7BkJJleUbJfwIbIZJnRUBypw9JujwagasjH4AKCmVRFdknSzV/rST1dW1GBSLGz27qpQ== X-Received: by 10.98.72.218 with SMTP id q87mr9462749pfi.152.1456751647706; Mon, 29 Feb 2016 05:14:07 -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.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Feb 2016 05:14:07 -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 3/4] media: soc_camera: rcar_vin: Add cropcap callback function Date: Mon, 29 Feb 2016 22:12:42 +0900 Message-Id: <1456751563-21246-4-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 cropcap 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 9225992..96f3c8a 100644 --- a/drivers/media/platform/soc_camera/rcar_vin.c +++ b/drivers/media/platform/soc_camera/rcar_vin.c @@ -1913,6 +1913,13 @@ static int rcar_vin_get_selection(struct soc_camera_device *icd, return 0; } +static int rcar_vin_cropcap(struct soc_camera_device *icd, + struct v4l2_cropcap *crop) +{ + /* TODO */ + return 0; +} + static struct soc_camera_host_ops rcar_vin_host_ops = { .owner = THIS_MODULE, .add = rcar_vin_add_device, @@ -1928,6 +1935,7 @@ static struct soc_camera_host_ops rcar_vin_host_ops = { .set_bus_param = rcar_vin_set_bus_param, .init_videobuf2 = rcar_vin_init_videobuf2, .get_selection = rcar_vin_get_selection, + .cropcap = rcar_vin_cropcap, }; #ifdef CONFIG_OF