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=1796206755; b=LOC/H7c47LHy0FLfmmP0yGw0dBZeJxmCMNPP1Ip6MvUEpygzVuny9yQC8DG3Of6e4P4M unCJA6O8DyH0Mb2z+y/vOnBH5aMDPrkLJ4cZrinX1a2ZPq2K8/Kc0nE2/Lwby47X98knA WkubS67fxkrYGYdbcAEUKEj5OASXwC5seL19m/LfXOUHHh2bObn3SrjVeS5uH/VM1um9w KdipOjT/VUHcUOniq8fX8DC7zbfpDCVoxsxR6QuuQoOZEXMFPyJzOXJ0ELE9VwfhBunL6 SdrVSJ3rxzgbForvHhI9mTdY+a9Xm3vE4iw6M9ifJr+dt71PvZH6IatvVM0HIPlNz6g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796206755; 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=ibE8/61NtZWd1GuG4bCyoy2mrMw3g7BapZmdyHwNTsoV/xXadjiBcJzwUUTMeTYQwS+A 4QJv6cS9v+/SAh4FVtKYkR1jZ/yKLODEvKzgjXIaF7AMZJH+StOSvUwmJx5YVCsseVBIz sfWEodsPdFIRzXyJUHJYFeRzFM8fBRFIiaNi5WYiu5489xhYHzmzIL5RvdT1yjBNOvcjG NtTJp6YoHlAzNecxouIzK/N4Zl/1uAjJM3cr+0Y/DTXQAqB/g+slpViZzBEvysNbyQeTc gbBhOABAwk8NnMGkHDqwqi/P8/myd8gq5/Ct8503LmVcb1oPIK30lo+0RDxArs4AoSw== 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 A7451606A325 for ; Wed, 2 Dec 2026 10:19:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A7451606A325 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: arm-scmi@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