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=1796203775; b=P2ffajTN92h7H8tWNOeuZBpqhvynkof3mvz2JSLKsKUtLuGIm3H2oetQ9IzOnce/bFEc ueGj6kmWsRrQHoHqsYtn0J2Hw8faf9y/sQhB6nsnkRw75BY2S8hutkV1BapnCCv/PO11B B5lr0r3/18LLqNRAysIYEm757JlBrIPycKsCGgknretDGxkaO6NZSAawdnxTYtNIqPbRq BxItsAkh2CuBL6CK8nok+guAPdnBNnxylak363bSI+nmJcG2JFRkGg/Emmr7VBl1g0n3O guTk5nGOfS219nytik+4vJa4Hp7HqoyMdJchbMUMs+E4QP5OcZpNEf+Dx/Yr6VhePOw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796203775; 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=zvKSSfbP9atklR2eS/1VzkdDswJWLF9cr+GV1R8HFwM=; b=f1d4Dl43HkwooveZnodWDy9auAyfUqziX11JyI076Y++pZbWg2eg77R+G5O9TwY3bVxJ EcyintH10qp5JygkdKYQmiyITLBJn+IgL23yKvPxRz+jdb6eX5FMpikDtNyqo2BslYjIU wVxand7q+4aOFQaqyY93hi+cdwhc+zuOQph7r6VESbPNg0QEYnp8LaK3opk5xm2rAsG0U ulwAgSwEolu/vrd6cYHG+wXG9ABd6IdF8tP0IrfUdIdbobxLC/Vq51EIpO2RlOcpsZi/9 FuvlEXRFindpTNMfygYXHieDrnS49fnxXhStAEXWQ4QJIZDMip0V/FAIGrIDAx22tjg== 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=F+SztBFR; 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 E918F606A322 for ; Wed, 2 Dec 2026 09:29:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E918F606A322 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=F+SztBFR 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-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: <1949584a3244023110420b107aca495387b99e8f.1796043912.git.geert+renesas@glider.be> 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