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 A03C3606A322 for ; Wed, 2 Dec 2026 10:19:24 +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=SmwsWZy1; 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=EVQf6W2x 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=9CHVEGJGl6WfiWZVE8PrMUJFYNSaLrPHsJB8WlMDy7U=; b=SmwsWZy1+PcisLw6WKXr3AYTj+ EbF5Ph7XisBVR3n9iNYok5uLi+o8FVpOdbqrY3V8IoELjsABGY1kJ+JcLOadVJ4j/h5a37Y14iDIb M6+8+g9pP818rmVymBGfofqjcWzaRsFqjo5+y9/fYx5CP7jNM32RNeCyx0b+rxH9Qz60fjt98hOs4 LS0laHRxjNHKBEl9+8Y43wpaQYDS7FhcMG04fvCkTwIsKJmrKr2AtJEQdQ20xdQMKcGsyPN7JtfCw WSr9H61MqUX6ipK11JValuDMokrojHsALCZjA94Q+O4f2TFIIqo4VujMkzJmNlXVW6Y/KEVLhttUs TY2UZIAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYhQj-0000000B8Kn-1Dds; Wed, 02 Dec 2026 10:19:17 +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 1xYhQh-0000000B8Jn-0IiG for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2026 10:19:16 +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=9CHV EGJGl6WfiWZVE8PrMUJFYNSaLrPHsJB8WlMDy7U=; b=EVQf6W2xI/PjQl+/6p2N wmpoKhbKAur188iP1/jTAd05Z2x/oSH90rkJrLNWkVbc1DxDztjmdWOa5RHfOXMQ HMB9Gp4OCR+0dNJkzLezydY1+cRGWM2hilkm3BjuwXAqslhMuM+AY6v3J1hBcCeT k0mnjpn8xmOdFYGrbNKmk0aR5BdWxllg2g+wnuaVdlspa38UFS0yykIMSZ1Ku6Ld t4XAvwi9nLTXzswajB/O40ODxaSe7K4GC/XDXEnkuLYkq3n4nz5UecKIXtcme3Oh 7VhmUxM9Ho7rC2jPMSrmN/0uI78rXy6/ETmcJcaQD65MuV9LCWB40P2mr1IG3Pgj yQ== Received: (qmail 701839 invoked from network); 2 Dec 2026 11:19:10 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 2 Dec 2026 11:19:10 +0100 X-UD-Smtp-Session: l3s3148p1@hltB+aNhJMAujnvT Date: Wed, 2 Dec 2026 11:19:09 +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 Subject: Re: [PATCH v7 11/14] pmdomain: renesas: r8a78000: Replace sentinel by explicit ID map size Message-ID: References: <4800b598ec648c3472eb438f0b0cc82bcc895a3b.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: <4800b598ec648c3472eb438f0b0cc82bcc895a3b.1796043912.git.geert+renesas@glider.be> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_021915_482387_AA08B064 X-CRM114-Status: GOOD ( 13.39 ) 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:42PM +0100, Geert Uytterhoeven wrote: > From: Geert Uytterhoeven > > The use of a sentinel in the module 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. Let mod_id_map_find() return an index, to be > used for indexing additional mapping target arrays later. > Add a MOD_ID_MAP() initialization macro for brevity. > > While at it, drop the check for "!map" in mod_id_map_find(), as that > pointer can never be NULL. > > Signed-off-by: Geert Uytterhoeven > Reviewed-by: Marek Vasut > Reviewed-by: Laurent Pinchart As helpful as the similar change in the clock driver! Reviewed-by: Wolfram Sang Tested-by: Wolfram Sang