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: 7119511 Return-Path: X-Original-To: patchwork-linux-media@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 3F130BEEC1 for ; Thu, 3 Sep 2015 23:16:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 679B3207DA for ; Thu, 3 Sep 2015 23:16:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7ACB820801 for ; Thu, 3 Sep 2015 23:16:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757700AbbICXQi (ORCPT ); Thu, 3 Sep 2015 19:16:38 -0400 Received: from mail-lb0-f179.google.com ([209.85.217.179]:34108 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757161AbbICXQh (ORCPT ); Thu, 3 Sep 2015 19:16:37 -0400 Received: by lbbmp1 with SMTP id mp1so2394315lbb.1 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=XGpKRO7Psa8jWNtPHL307NoY15+I5TyxA6BrdbScXxenetKQfBSM0kM7Aps1O2Mxzr vzMh6VBE3qVTOwre2ItPwpqtEEBGdFmQVFMOARP+XWWe/dqITeu69RfpSGeCLsti5z2X YO96ZmWA6q2OKJ7OieiLqOwNWzIigyeGpvQJpZxf0TRilxktB4K/JtvbW8PloF/ACYJ6 pUItdkX77VmD7xmlgh+gZkn6e//bn1sGQU0z1QF8Dp/ZrCZBMK2L+NzdL4kLlFXP4eFI /jU4A6KMkUl26VOjoGCGH7Bz5w3nP9gtYHOn4t1bunEv3tzUt2PAReN/CVOsfprz3jbb FtvA== X-Gm-Message-State: ALoCoQnWwwq6ZHQj8V+WNQFFhWW8wnCxbeKRCpKE/wFwxKG1jPwhV68MeanOfMgyyiZ1X9bbD5Ud 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-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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-media" 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,