Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp839099pxv; Thu, 22 Jul 2021 13:37:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9tfA4SB+i0CGfQfvkxty63mzv5s0Xo5gq/g9JlunDJXkLeFMcgKa+mbCVwZQnE9snlSR/ X-Received: by 2002:a17:906:5957:: with SMTP id g23mr1543069ejr.484.1626986267843; Thu, 22 Jul 2021 13:37:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626986267; cv=none; d=google.com; s=arc-20160816; b=zh8O8YttECwxzscivPXVeM+b45Lz7tKyw9GQjjM4/carMa/rHPSolEkKljjSWZ1ot9 HNu10RmwChF2ytYpUFvdZyIvSyfFI6YU5u/quK/FcNHfXYRHN6pYybAgC5mZSp2nx9sk qiPkldZ2IdAEjZ2tw7yP93O77fNUybvr/7MFbPh5vw1dXMoi0otBjYow0mz+HHMr/frD X8euqY90dpWNh3KxB97kvQ323p+1jra9UAwRTBwZzICDCwa6ukgw/011lkT2N9M950js JJ+nsvzi/ia884E9pOmeMRqXSIg7VevYoHCCZ4roKVgkCeXkvL1vnObgyR1Fv9LVupkr MyAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pPYPamu3BTSvC4xDyNwMS1rZ00+Vamo+vGwg9BlQGtg=; b=zZjUpFZlQ6XAPYv4JnxmUM5Qiwzwn9+32D2GHht2ydj7bM9SFiDq6XAZvMXbsz7hcF fLEpSXY7fgYxFV0oySecY5/vpxKfRGx5JMSLJ0Dip+bwC9btRxQLMzGc2eY00ea02O49 uHYQ80rQRUUc2QKDbSZl+xCpOy/VCSdpKZOfAhZlgCw6MTlNKFcSGdaTEQEB/Iqw1X3W OGlpQeCI3Kg47C2tjMrKH+qLZd+D3GAXM0bsZpofDvPgkLm/irTBsu3mxxxaWZ4L/MH+ 5rWaDb0tYzSB4bTPDgXqfRpWIYkUJLCwIhZjMXFOCz33SPQzEEpkkXl5vxmab4w+W+VE J+fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QU64f1ey; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id op26si34944723ejb.721.2021.07.22.13.37.23; Thu, 22 Jul 2021 13:37:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QU64f1ey; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231387AbhGVTyU (ORCPT + 99 others); Thu, 22 Jul 2021 15:54:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231135AbhGVTx7 (ORCPT ); Thu, 22 Jul 2021 15:53:59 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FB41C06175F; Thu, 22 Jul 2021 13:34:33 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id j2so30599wrx.9; Thu, 22 Jul 2021 13:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pPYPamu3BTSvC4xDyNwMS1rZ00+Vamo+vGwg9BlQGtg=; b=QU64f1ey246ueY7K6FvQaR+tNFW7/c2ASWKR7EbrVG8mHVYrWdttwIfkiTuXn6WySv EQ4tlcU0qfG8G9OY8tJfcPowVYwtXs2rGlF9opDSKHClD076pik9LwAxbXPjKiLmf2uy hRuveWJGiMDZax4GPRPscX1uL4J4b1gHOex18wSRYNhrHhSCI5LkKyk1hYvzrAUmpfRv j26ddwvFEc1IxxfaWJoWoRwUSmePz04LnRBGNMeBfAuQWt0yj4xrPD3MaD3XUa4B1vXt 8Gr8szSFzGDEM4/Qv6M/Y1Df4DKJTeVRevVrlG+Pt0X4cwprQjC9CKcENBAWyEg5rGDb yAMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pPYPamu3BTSvC4xDyNwMS1rZ00+Vamo+vGwg9BlQGtg=; b=SJRvFiEXFGMBy3WE1ULwx46gapyJQEpMg4xm8DMhK0ZhupvJPiZgjtIYRWa3BgwZbb 1opzNl0nuffEzXbPcEIrcdFdReF/IsE9oYA5CjvxEE3fHxxHX+gsgQDozi/1MpeWKMTg Y2XS5qmEN0BxnhQu4XNyfE5t3Gkiod3pLiRAHE+YHhFUtFYYQjg5JOuSrPePNYqIL0Uc yrFzNA1oL0mTa7ZjG7VJvdR8IFw/7miAzIp1cYymRh3htRYw7PdgRT9Idin4HFSwhlaY V4otLuwd2QpDh8YpOhpvVJjaMheh6eKrbbHAPqb1rHtP0CGX9p3HLbpGh/XlKiXhuU4T bu5g== X-Gm-Message-State: AOAM5314GLDEqGs0dK4MikXwBRhMdMrmUljY3eYI+JAtJKSYyrAKY6Ey NEzqyt4A/K45liDod0LAej0= X-Received: by 2002:adf:f74f:: with SMTP id z15mr1788475wrp.54.1626986072117; Thu, 22 Jul 2021 13:34:32 -0700 (PDT) Received: from valhalla.home ([2.29.20.106]) by smtp.gmail.com with ESMTPSA id b16sm31036455wrw.46.2021.07.22.13.34.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 13:34:31 -0700 (PDT) From: Daniel Scally To: Daniel Scally , Mauro Carvalho Chehab , Sakari Ailus , Paul Kocialkowski , Ezequiel Garcia , Hans Verkuil , Yang Li , linux-media@vger.kernel.org (open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB)), linux-kernel@vger.kernel.org (open list) Cc: Yong Zhi , Bingbu Cao , Tianshu Qiu , Colin Ian King , laurent.pinchart@ideasonboard.com, kieran.bingham@ideasonboard.com Subject: [PATCH 06/13] media: i2c: Switch control to V4L2_CID_ANALOGUE_GAIN Date: Thu, 22 Jul 2021 21:34:00 +0100 Message-Id: <20210722203407.3588046-7-djrscally@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210722203407.3588046-1-djrscally@gmail.com> References: <20210722203407.3588046-1-djrscally@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The V4L2_CID_GAIN control for this driver configures registers that the datasheet specifies as analogue gain. Switch the control's ID to V4L2_CID_ANALOGUE_GAIN. Signed-off-by: Daniel Scally --- drivers/media/i2c/ov8865.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/i2c/ov8865.c b/drivers/media/i2c/ov8865.c index c012f5cb11ab..09558a3342dd 100644 --- a/drivers/media/i2c/ov8865.c +++ b/drivers/media/i2c/ov8865.c @@ -2137,7 +2137,7 @@ static int ov8865_exposure_configure(struct ov8865_sensor *sensor, u32 exposure) /* Gain */ -static int ov8865_gain_configure(struct ov8865_sensor *sensor, u32 gain) +static int ov8865_analog_gain_configure(struct ov8865_sensor *sensor, u32 gain) { int ret; @@ -2447,8 +2447,8 @@ static int ov8865_s_ctrl(struct v4l2_ctrl *ctrl) if (ret) return ret; break; - case V4L2_CID_GAIN: - ret = ov8865_gain_configure(sensor, ctrl->val); + case V4L2_CID_ANALOGUE_GAIN: + ret = ov8865_analog_gain_configure(sensor, ctrl->val); if (ret) return ret; break; @@ -2493,7 +2493,7 @@ static int ov8865_ctrls_init(struct ov8865_sensor *sensor) /* Gain */ - v4l2_ctrl_new_std(handler, ops, V4L2_CID_GAIN, 128, 8191, 128, 128); + v4l2_ctrl_new_std(handler, ops, V4L2_CID_ANALOGUE_GAIN, 128, 8191, 128, 128); /* White Balance */ -- 2.25.1