Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1822022yba; Sat, 27 Apr 2019 07:52:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRml2Mk8+Q0dd9E1PwGMZg2Mav921qHcqTEkoxflFH9BV0appKQtfLoUqWzofNtoJxXCvG X-Received: by 2002:a17:902:864b:: with SMTP id y11mr49207674plt.1.1556376733877; Sat, 27 Apr 2019 07:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556376733; cv=none; d=google.com; s=arc-20160816; b=VLJQIHV+t29+YGA2J+Sfo8m17sA+exOoKmJ1ZESamFgQ7F/or3q8b3pPVkAl4c1yIk KhaMsA5j9NDEQToDgLWxSKDwwLJrFKYJywUbz625zUHS4BBURr6Ljlr0E8wOW13c6DUM hcp7dIV3PdeoSaXd5RFHALif1FcOe1lFo6bS1h1+jskc6cK8H3cXBE7hp1kpFyaT53xw Nls85TZKesc6zeMPuH7sbDbqiFpr9C+YWMQAbRRDO9SrY9CY/9sFa1O1BqOKot4V6cv0 WBU8I3RoQBjgHZ97AyIPMuGHCi6rpNdg1qLJne2qDAqAh/AnMpTfRPhEict9p59K9t83 ry0g== 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=CtTmsrVqAH1ILwptf+N0d1GmeUR6mt7b50+uoU2Ki/wLBJdu415vR6hRAWOlXQb1XR JpxyiUqURkA3vfsgk0cUz2Dm37jeABAGz5cTCEub0xnTS1V7xKKmRbNo5XBbD3+X54/A 28SPMoEfYUUVAHKLIsKJacvlYgJQFV01UY11ooJxMudGjRWGtL8Qt7Rl+3ICdEpisy37 BViRTR8BuzkdqIyJz81hll/mWIKXO5QwVLx2dTL/1fQnz84eUKa8vHfpuMmHXN5NIgxM lR/s18JffgtYAi+mdJm+GiBFh39kn4B3v2QzmKcoWKPeHqvFmDnDxFjnyaiww4wWrb68 Uflw== 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 i8si10317872pgq.468.2019.04.27.07.51.58; Sat, 27 Apr 2019 07:52:13 -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 S1726694AbfD0Ou4 (ORCPT + 99 others); Sat, 27 Apr 2019 10:50:56 -0400 Received: from vps-vb.mhejs.net ([37.28.154.113]:49430 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725942AbfD0Ou4 (ORCPT ); Sat, 27 Apr 2019 10:50:56 -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 1hKOfD-0007zg-1T; Sat, 27 Apr 2019 16:50:51 +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 v11 2/7] cx25840: g_std operation really implements querystd operation Date: Sat, 27 Apr 2019 16:50:29 +0200 Message-Id: <9490ba236364690f582815c125b3e5208a4778a2.1556365459.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,