Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3948984rdb; Mon, 11 Dec 2023 05:00:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHcJ1+j6jPmbHLxH1Oml1IuQ+pXCWhQyDGGgaHBi7DRq0tq9IUn52c4p5s8ueNc9aowrUK4 X-Received: by 2002:a05:6a20:918b:b0:18f:97c:b9fa with SMTP id v11-20020a056a20918b00b0018f097cb9famr2227028pzd.84.1702299659507; Mon, 11 Dec 2023 05:00:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702299659; cv=none; d=google.com; s=arc-20160816; b=uZB8T4y+XM66W78VukA4khsYuTp4NPeOKpTFWJKmyCwDfD+0WL6HVNexrmWZIqPywc UcO9H0UwE6vWj8cc9EZoYCph7CzRYtEUmsuRdwFxWfCO41CewJCOgqid2/X0xzim+fC6 aeikEv4DMd6PceYukgOq8RVRYhnUNWL19piupacSFeQVI57rCF52cImQsKkPDZseqMTk MyMIHfuy5GwtWaMZ0DrKe0FhzH7BukRrpUz1QUNG3rTWmyMgMxrCnvnTouyJGmFc5Rg5 DBW0RLaEb28Xmdde/nrpFZ+mjj3W5xuwR0dtFQ7EmNJaPwTPoFprklEwdNCTbAtiuN35 /9rg== 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=4T7ed2Ee4yZdpGZPSTxswX9DQ89SUBNNb7TyAoVhjnM=; fh=5WFlYumxFb4YMTIyFXnieMfGzo3YjRfO3j2f2Wqiw4A=; b=bBq0yO9SnRvR+XzrrgVVkj+OkgxFoSZ7rkYxt0Auwo2nQFd9F6sQR2I6nYwMKngwL3 sMjzOpoGMLURg8KN8LeexuUR/SjT2WiHKz4irTMbjZSjdFP1EnmIqeSm0W7bSi43NOFw IzBOGMnJx8wFoXFDf99VUtFTfrJgUc6IRWsJww8GJ/4D1IqSKX6yvqTAeLmyW9wX1Ose O8jMgg6fyhx3pd776FTqLTwYHVtmUsx5oVpxFcdfRti2e7vf8K+tha+KjBdH6jQxF7es V3f5KcqJ6MEE+/4gnR7dcJMiOyyz5McXOOK5UstZN7jKdO6Ocb9X1NlJW7fRPkIthO3j dsaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=BmxCJ8mZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id b12-20020a6541cc000000b0059779ae5899si5739201pgq.836.2023.12.11.05.00.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 05:00:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=BmxCJ8mZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id E4D7F807C759; Mon, 11 Dec 2023 05:00:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343581AbjLKNAl (ORCPT + 99 others); Mon, 11 Dec 2023 08:00:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343613AbjLKNAV (ORCPT ); Mon, 11 Dec 2023 08:00:21 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35445127; Mon, 11 Dec 2023 05:00:25 -0800 (PST) Received: from umang.jain (unknown [103.251.226.68]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B3716922; Mon, 11 Dec 2023 13:59:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1702299580; bh=zV/RIEdgSrvIS1kxne2Y4K//Y+viiimnpU5CN163GOE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BmxCJ8mZlLxROcoDIpc4daiKA/1PPC02aFqo2RmKA50OPJLZ6M38kdGTYyfuHzpUk P0wdmSUmWyoQs2dMaUnW5p1ADX6qEXt6qvEaMDeOTCM2ILzXFWYv6SNW8XxH28hRdQ rRik7C39Q39KKZv3GqdG3Phd2IBKTueS+rLbe6EQ= From: Umang Jain To: devicetree@vger.kernel.org, linux-media@vger.kernel.org Cc: "Paul J . Murphy" , Daniele Alessandrelli , Sakari Ailus , Mauro Carvalho Chehab , Kieran Bingham , Umang Jain , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v4 6/7] media: i2c: imx335: Fix hblank min/max values Date: Mon, 11 Dec 2023 18:29:48 +0530 Message-ID: <20231211125950.108092-7-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231211125950.108092-1-umang.jain@ideasonboard.com> References: <20231211125950.108092-1-umang.jain@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 11 Dec 2023 05:00:57 -0800 (PST) From: Kieran Bingham The V4L2_CID_HBLANK control is marked as readonly and can only be a single value. Set the minimum and maximum value to match the mode value. Reviewed-by: Umang Jain Signed-off-by: Kieran Bingham --- drivers/media/i2c/imx335.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/imx335.c b/drivers/media/i2c/imx335.c index a924b7222ca3..f353647a0d4e 100644 --- a/drivers/media/i2c/imx335.c +++ b/drivers/media/i2c/imx335.c @@ -1043,8 +1043,8 @@ static int imx335_init_controls(struct imx335 *imx335) imx335->hblank_ctrl = v4l2_ctrl_new_std(ctrl_hdlr, &imx335_ctrl_ops, V4L2_CID_HBLANK, - IMX335_REG_MIN, - IMX335_REG_MAX, + mode->hblank, + mode->hblank, 1, mode->hblank); if (imx335->hblank_ctrl) imx335->hblank_ctrl->flags |= V4L2_CTRL_FLAG_READ_ONLY; -- 2.41.0