Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3839000yba; Mon, 29 Apr 2019 09:19:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwCZFfoP6jU+Ey0xgyae8kskrMASDrXf2Fz5QPQ7HjmJH9ATxOefBBKyW+lIjRKmQeDK2FQ X-Received: by 2002:a62:62c2:: with SMTP id w185mr40099816pfb.237.1556554790028; Mon, 29 Apr 2019 09:19:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556554790; cv=none; d=google.com; s=arc-20160816; b=XH6m+dT+KPTFJXEDBTOreSA1SfGXvl4Tho6dbXGcGQ8wBFZb+khYnAJzX1Ut3yL77E B98qRjCLpUCjoBTJ63IiCh4TGCua5J5o9oYipdC2yE6myTZ000t5Mg2g/vfeA8rc0FCB /Cg23+b5T0ZcWQ3yZMkcy3QvdxhAHpKK3+HV9Ss9NjYiKyxV3rFcjpasmQ5/knxePD/h mJmuNo9rg244V08K/rSum59Lev9VKVCzTOnfIiP2IHtwmLfnZ/AhNbvJjXxlry45G+dS V58erQ1UiP+KtGNffZGVxWhWiGgAagGSodRf7GMX3k31hVGkSU/+gpRTlNzhHXAf8meB uW6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=u0iKjnhnh3+ITZ3KLrdf1adDuRb7DbPNbIoGHagNkgA=; b=OBaQ19Qo/dmqthfyE7cFNSZqw91LpL2OaqkuDeUVW3VhGD1+b2lxbrH2JF1KZE+/ey Z5LiSqKHYfc2eOWVo8khaKOK1WAddN62wXlQpIQmG3EaD722YdWdI8zFjOB1KxjFpQww MFkGzRZ1esbBRfw3AVwOA1Ji8ytdCObMm8mZm2yAE5C/llgFDxI0PaGopXyz5f6lNcPq TY2C+X+zSJXKCAsZ8GtCqHI6H/bcJQjqIb0mK4q0+w57foLCMdoIu8hXKEQIrrQhGv9A 0cYDShGyTLHaOf5qaQ8HEg9EHga3b5i8qkWn4H+TuMBHKvAbSd2AhZBWaWtBTGajuSDz LroA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ci5si35649652plb.145.2019.04.29.09.19.34; Mon, 29 Apr 2019 09:19:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728812AbfD2QRU (ORCPT + 99 others); Mon, 29 Apr 2019 12:17:20 -0400 Received: from vps-vb.mhejs.net ([37.28.154.113]:56206 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728481AbfD2QRT (ORCPT ); Mon, 29 Apr 2019 12:17:19 -0400 Received: from MUA by vps-vb.mhejs.net with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1hL8xv-0002pK-V2; Mon, 29 Apr 2019 18:17:15 +0200 From: "Maciej S. Szmigiero" To: Michael Krufky , Mauro Carvalho Chehab Cc: Andy Walls , linux-kernel , linux-media@vger.kernel.org, Hans Verkuil Subject: [PATCH v12 2/8] cx25840: g_std operation really implements querystd operation Date: Mon, 29 Apr 2019 18:16:53 +0200 Message-Id: <9490ba236364690f582815c125b3e5208a4778a2.1556554056.git.mail@maciej.szmigiero.name> X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org cx25840 driver g_std operation queries the currently detected video signal, however this is what querystd operation should do, so let's rename the handler. None of the existing cx25840 driver users ever called the g_std operation, one of them calls querystd on each of its subdevs but then the result is only used to implement VIDIOC_QUERYSTD (as it should). Signed-off-by: Maciej S. Szmigiero --- drivers/media/i2c/cx25840/cx25840-core.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/media/i2c/cx25840/cx25840-core.c b/drivers/media/i2c/cx25840/cx25840-core.c index 0bf30222cf93..2bcaf239b0d2 100644 --- a/drivers/media/i2c/cx25840/cx25840-core.c +++ b/drivers/media/i2c/cx25840/cx25840-core.c @@ -1772,7 +1772,7 @@ static int cx25840_s_stream(struct v4l2_subdev *sd, int enable) } /* Query the current detected video format */ -static int cx25840_g_std(struct v4l2_subdev *sd, v4l2_std_id *std) +static int cx25840_querystd(struct v4l2_subdev *sd, v4l2_std_id *std) { struct i2c_client *client = v4l2_get_subdevdata(sd); @@ -1800,8 +1800,9 @@ static int cx25840_g_std(struct v4l2_subdev *sd, v4l2_std_id *std) u32 fmt = (cx25840_read4(client, 0x40c) >> 8) & 0xf; *std = stds[ fmt ]; - v4l_dbg(1, cx25840_debug, client, "g_std fmt = %x, v4l2_std_id = 0x%x\n", - fmt, (unsigned int)stds[ fmt ]); + v4l_dbg(1, cx25840_debug, client, + "querystd fmt = %x, v4l2_std_id = 0x%x\n", + fmt, (unsigned int)stds[fmt]); return 0; } @@ -5081,7 +5082,7 @@ static const struct v4l2_subdev_audio_ops cx25840_audio_ops = { static const struct v4l2_subdev_video_ops cx25840_video_ops = { .s_std = cx25840_s_std, - .g_std = cx25840_g_std, + .querystd = cx25840_querystd, .s_routing = cx25840_s_video_routing, .s_stream = cx25840_s_stream, .g_input_status = cx25840_g_input_status,