From patchwork Thu Sep 3 23:16:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 7119501 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 54A8E9F36E for ; Thu, 3 Sep 2015 23:16:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 83B6020808 for ; Thu, 3 Sep 2015 23:16:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 98BE4207DA for ; Thu, 3 Sep 2015 23:16:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757579AbbICXQi (ORCPT ); Thu, 3 Sep 2015 19:16:38 -0400 Received: from mail-lb0-f181.google.com ([209.85.217.181]:36847 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753306AbbICXQh (ORCPT ); Thu, 3 Sep 2015 19:16:37 -0400 Received: by lbcao8 with SMTP id ao8so2353501lbc.3 for ; Thu, 03 Sep 2015 16:16:36 -0700 (PDT) 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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=mZR0MWJVackoc99n4L06YowoLhVjrwOIFl0s+klmvqY=; b=bQ7zNxJYJUZmQ3TcuKjnhwGi7SZ4SVW0aiYfiulkwB6XDXHlnfyKIgrlO4tAeJXHsS JVtsdTfnMLEbsYwkH+kcZ5pBAG+WHb+5pDgCJ/KQmicaVH7CxtdxB1dNkmjYDZvitoiR CNUUBsLYGrAOKzHTk79F3o+uDtC8LUuZo266Nfgny3B5EYZEJRMuIpFrvrI66TRKzLSX gyHq5ZC2m3o9yrM7meOuYke7wtMATAAzPrQAUfwpsvK3UbFsdQ0+SgxIcfvRlow2OYsP KVj/QNjsYzWdVmW3B5Wr1lPYDyhG5GlMdKTCH2IrUmLzc8M/nS+0lUnk0tNlPYuIrdmf +SUg== X-Gm-Message-State: ALoCoQne2LVFSY2gIR1vaxXYI7puqvIJ+CClCMHfN5m9lTdHznF68P8aJG4ZFeNZmAK1pLWqy0LZ X-Received: by 10.152.8.233 with SMTP id u9mr510967laa.8.1441322196221; Thu, 03 Sep 2015 16:16:36 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp17-93.pppoe.mtu-net.ru. [81.195.17.93]) by smtp.gmail.com with ESMTPSA id wg9sm97783lbb.6.2015.09.03.16.16.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Sep 2015 16:16:35 -0700 (PDT) From: Sergei Shtylyov To: mchehab@osg.samsung.com, linux-media@vger.kernel.org Cc: linux-sh@vger.kernel.org Subject: [PATCH 2/3] ml86v7667: implement g_std() method Date: Fri, 04 Sep 2015 02:16:34 +0300 Message-ID: <1725998.gULFgFImHk@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.9 (Linux/4.1.5-100.fc21.x86_64; KDE/4.14.9; x86_64; ; ) In-Reply-To: <6015647.cjLjRfTWc7@wasted.cogentembedded.com> References: <6015647.cjLjRfTWc7@wasted.cogentembedded.com> MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 The driver was written with the 'soc_camera' use in mind, however the g_std() video method was forgotten. Implement it at last... Signed-off-by: Sergei Shtylyov Acked-by: Hans Verkuil --- drivers/media/i2c/ml86v7667.c | 10 ++++++++++ 1 file changed, 10 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: media_tree/drivers/media/i2c/ml86v7667.c =================================================================== --- media_tree.orig/drivers/media/i2c/ml86v7667.c +++ media_tree/drivers/media/i2c/ml86v7667.c @@ -233,6 +233,15 @@ static int ml86v7667_g_mbus_config(struc return 0; } +static int ml86v7667_g_std(struct v4l2_subdev *sd, v4l2_std_id *std) +{ + struct ml86v7667_priv *priv = to_ml86v7667(sd); + + *std = priv->std; + + return 0; +} + static int ml86v7667_s_std(struct v4l2_subdev *sd, v4l2_std_id std) { struct ml86v7667_priv *priv = to_ml86v7667(sd); @@ -282,6 +291,7 @@ static const struct v4l2_ctrl_ops ml86v7 }; static struct v4l2_subdev_video_ops ml86v7667_subdev_video_ops = { + .g_std = ml86v7667_g_std, .s_std = ml86v7667_s_std, .querystd = ml86v7667_querystd, .g_input_status = ml86v7667_g_input_status,