Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2399383rdb; Fri, 8 Dec 2023 07:08:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IGv6YN8ml9ziUqWS/0X5OCT8DYjMCYH8c4tPftCUjl95JeXfYzMXk2dj/dQsb5Q46YXFyuL X-Received: by 2002:a17:90a:3dc5:b0:286:6cc1:864e with SMTP id i63-20020a17090a3dc500b002866cc1864emr178352pjc.51.1702048119735; Fri, 08 Dec 2023 07:08:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702048119; cv=none; d=google.com; s=arc-20160816; b=PWEH/n1SQpsoffuZj30OV5hbUD5m6cPmctnnvtS0GtQkbp/BHEcHzG11EfKYvYZneS P33su+krtBQ6YRlba8p5ET0a0NM7vPyvdhOlsH5Qe0y/HCdIKidO/HrsTN4oAgMNUGAa Otc05Bc1Nu8Kwh7aREPoslkHi8vRKxExGQyuJg95Z0azcOpvwdiWp6PijOo8xxW9NruK t81ZBruaKUYDpaHOmDM3HQXT2tBeFrQ+rd7ZtuoPuDyhY42IOMEge72wndsk3xMFgDQc BBU7C2oSTJ+HDQtYOwB8Uc/Wm1ouaZVrqtmvp9hA7GF7Rc0hDhG45MSNFRTqjsqP3wJb 5pTg== 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=OQSkhMCXg8Y0+oqbTs97L7yDmTaXORBRHyrlGGxvibVAWYy3qT6XyI1s8DulMpgfab TG/0bVCR6elbU1l8D6S45c6SlvgG73T0CDeEbJurYKqY09D/LFn66zidf5bwg/FZIV6J bziEcar5jJESMw7UhtQCFsXfkiPIHYj6PrLJDFGygl3i0vVKpiktbqO8k/aplLFCg0Hy QS8K8AE2yKqsQx3xDfb+Iz5ED7baodre37oWhtU1M1ZqTe2rMUvo+aVFm67q1Q99CD0t zJcRwXd0RsL4zAB84l+LUduktJ7YcYnOSv5Bd0ILSt4wIM/VVewCf+0sovO91qtDjkk5 NbuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=tyGQgj8n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id np9-20020a17090b4c4900b0028681add0c4si1760763pjb.151.2023.12.08.07.08.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 07:08:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=tyGQgj8n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 47B488113EEF; Fri, 8 Dec 2023 07:08:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574178AbjLHPIS (ORCPT + 99 others); Fri, 8 Dec 2023 10:08:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1574198AbjLHPIM (ORCPT ); Fri, 8 Dec 2023 10:08:12 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79812173F; Fri, 8 Dec 2023 07:08:18 -0800 (PST) Received: from umang.jain (unknown [103.251.226.108]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D14E8512; Fri, 8 Dec 2023 16:07:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1702048055; bh=zV/RIEdgSrvIS1kxne2Y4K//Y+viiimnpU5CN163GOE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tyGQgj8n4uQNiTfM7OVFjlS7zUuovDpEqfB4+o1u71fLQCzWKOOUIwkuDPH+J6R44 gKVwvBcNw0ENon/eNAvW4GENPU6dGvyz3dyCRRt/uEEAiTup1nnD2Ei3gIilXU48fP 7hlEsxB9xw4TrpZ8Hb6qt6SNt5GcLzilx8/kf/NA= 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 v3 6/8] media: i2c: imx335: Fix hblank min/max values Date: Fri, 8 Dec 2023 20:37:52 +0530 Message-ID: <20231208150756.124720-7-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231208150756.124720-1-umang.jain@ideasonboard.com> References: <20231208150756.124720-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 agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 08 Dec 2023 07:08:37 -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