From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 129EA606A325 for ; Wed, 2 Dec 2026 09:29:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=kNPCmlUx; dkim=pass (2048-bit key, unprotected) header.d=sang-engineering.com header.i=@sang-engineering.com header.a=rsa-sha256 header.s=k1 header.b=F+SztBFR DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=zvKSSfbP9atklR2eS/1VzkdDswJWLF9cr+GV1R8HFwM=; b=kNPCmlUxyIlE9DXBVRfe8AzeK1 wDFCc98bHdsv4Z/RHmZ1pPHMJbbu14hXIB2rRce4vsAeZ0lz7qsQjoJM6x1t+HU5DUVOpdIE+uIVK PsIhO52HNx/z+QxlQOHDngKSLxPAhvi1fcc04sa+tP2h3vp5a+9665qGeYNlHEXra6wlAznDMALh1 lenmpKvYW3HtFYbZxV8dQswuReZxaNclVR+ZLOEcRXREO1MtVwZ0a50EafB7pDAft6l6T3DWfmYFA eBb9isK9JtMrvkWS5Q3GgWNLgICBGmhYkaRBDWEFtLQhXXRD7T1on+Zs22/cQS0sOvtZ9OQbAodLM AEJRhmmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYgeg-0000000Apjw-1Fbn; Wed, 02 Dec 2026 09:29:38 +0000 Received: from zeus03.de ([194.117.254.33] helo=mail.zeus03.de) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYgec-0000000Apj2-1pZz for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2026 09:29:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=k1; bh=zvKS SfbP9atklR2eS/1VzkdDswJWLF9cr+GV1R8HFwM=; b=F+SztBFRglSciZIoJJju QsMffQ0qZzrPGIndCOfpvG6Tvhk5kSrHFtK0r76m1hXXdGLZjkLZ5MMqcTT0CtzL cE7ellJgXqnFq4LE3WMXYkqUQslmyq1Erz/jwjas20W1Ks6AJMZH7ZvgV+Opha4L 7iEGfISxTvDPs5dsLSEDzS/ntqbLCKZbYZ3jS0IjiU2Ti9kRY75O8+G6oCUywgPR 26mwKG/HbupGCsHtc1HDFiaj2eY3W8Dgk+Cb49snp/jmCkDMNYrtx8Nwvl7Adwsq Gu3F1I8wVwQs9i/5/yfjc+F1IDmb2IzMFsDRPgKggDi6bk6eIszPQN/QzIXGDRi3 xw== Received: (qmail 679702 invoked from network); 2 Dec 2026 10:29:31 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 2 Dec 2026 10:29:31 +0100 X-UD-Smtp-Session: l3s3148p1@jii0R6NhaqUujnvT Date: Wed, 2 Dec 2026 10:29:30 +0100 From: Wolfram Sang To: Geert Uytterhoeven Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephen Boyd , Brian Masney , Jerome Brunet , Ulf Hansson , Philipp Zabel , "Rafael J . Wysocki" , Marek Vasut , Bartosz Golaszewski , Konrad Dybcio , Kevin Hilman , Vinod Koul , Kuninori Morimoto , Laurent Pinchart , Paul Elder , =?utf-8?Q?Cl=C3=A9ment?= Le Goffic , Sudeep Holla , Cristian Marussi , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven , Laurent Pinchart Subject: Re: [PATCH v7 02/14] clk: renesas: r8a78000: Replace sentinel by explicit ID map size Message-ID: References: <1949584a3244023110420b107aca495387b99e8f.1796043912.git.geert+renesas@glider.be> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1949584a3244023110420b107aca495387b99e8f.1796043912.git.geert+renesas@glider.be> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_012934_761248_23DCD8CD X-CRM114-Status: GOOD ( 13.14 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-10.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Mon, Nov 30, 2026 at 02:12:33PM +0100, Geert Uytterhoeven wrote: > From: Geert Uytterhoeven > > The use of a sentinel in the clock ID mapping array will become > cumbersome when the need arises to find out the actual number of > elements in the array. Rework the mapping data structure to fix this, > also improving naming. Add a CLK_ID_MAP() initialization macro for > brevity. > > While at it, drop the check for "!map" in clk_id_map_find(), as that > pointer can never be NULL. > > Suggested-by: Laurent Pinchart > Signed-off-by: Geert Uytterhoeven > Reviewed-by: Marek Vasut > Reviewed-by: Laurent Pinchart Agreed, using the proper size of the array simplifies understanding and the naming is really better. Good one! Reviewed-by: Wolfram Sang Tested-by: Wolfram Sang