From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.117.254.33 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796206754; b=3W/C/oLzUV2Ih+odqyNEI45rtYEA4mLGix3u83ZNINV428vxej58tdCD8fKgsYljOVzt Bgpl2yiBQNIiTjFquGyHDHdM0ThDEttB7/bFrROLaaydOBdMMM9w2VrN38f5YleJpLyUr PFBs71tSF6qiI/Mrh36F2hqMYFH4QfzX8k60j0+fYDWep+r2qmbf9MJktj57cqIoiOjxO wZLUM5seRLXAnXKzvE0JfIqzEF42UJmuGMkafRasitHcVwPf+0Hi8sQYk89NXx8XJQblT ljskjZ6h9qIqCGcIYrdQowQUOBhLa0WPrK5OMyHbp14hoAbOgpIgjUcJaLI/K+OmbmA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796206754; h=DMARC-Filter:DKIM-Signature:Received:Received:X-UD-Smtp-Session:Date: From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=9CHVEGJGl6WfiWZVE8PrMUJFYNSaLrPHsJB8WlMDy7U=; b=B++6VsbjsL0UBU1KQoYLQDQrBHVKsFB/cdP/G7eM5rwMjXKP7FJTXNvl9xHOh7KLO5Mk Rh1JpMtgp0XsI6uJoOuZhf3ATjDexBlRQUfRK5FZlwdUotQI1UAqxaUz13n07RcEqikkU 97thtGSqiMa94F7G+yPK9UMCJmHXS0MFUIkRhMnq1RWU+bTKI0jCz3EZZn+zLHQTBQz4q AM2zB/+OqBmMv9zOOzNb3/f3nyeDxs5oZ7ANCdcVnPRrNQQLIb7NWiiFGOpo/ltZW2C8l CtBBwGLcFHG5fvSGF90RGHAoy6yBcZANeNJAazs81XbE/LpkX0gdnPywLUrVHuB8VOA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass header.d=sang-engineering.com header.i=@sang-engineering.com header.a=rsa-sha256 header.s=k1 header.b=EVQf6W2x; arc=none smtp.remote-ip=194.117.254.33 Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (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 6A1C6606A333 for ; Wed, 2 Dec 2026 10:19:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6A1C6606A333 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; 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; 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-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4800b598ec648c3472eb438f0b0cc82bcc895a3b.1796043912.git.geert+renesas@glider.be> 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