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=Vt2cUSbwuxrnB63YgEDhXtjrtCQtk3GE87xkvPSWkRutj3Afa0yrwLXLChP0ASTzvunF gJ8EkeqVyQmbF5n15QWrIeP+a7peiwjU7fXmh+e7Bh07TAj+Tg5owq35DfqKeQ8YRlEqa QA8NrET6Rz+vvJM+IdNKU6XSL6YYA3ksmKWsYvpEy4uwxtd45GjFYepqSsTwZiRQbftx5 EZ2j+FX1EKweXskcQ0PtIKdaEpbYPYJ+jqaeJz4qdgjIBfk11iFbDauW0f3zsoLqOHBle pmRF/U7qw2SJGuutCAwXQB7PSff0RigQZhJCVL/z+1j/Nab5NjKPN5Sn0pDMHg7Hpxg== 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=k4JbvVx1CibTGkX/5wYwiB3oupcemmLnWJ3TA53PMHGvSxoz+dJCN1A7b2amOKNPMS9d nnU3m+UO2F3dlJns6zU/kBnFYx+JFYhc7nFXslNV/Xq+omRM75axXoeUdm/c9TxyQNPHQ RNM1WyZ9C3Gb4A/bSliu2tC8g2gIyoVx1XnUc6qG7C7XVVOHUowvKFu+dwTxVQnE+zywE TmQNeATehbyQsnr7DUenKlc5jdsqHZ562MXEJK4a14vVQEIJQejn7BkrhOlPtExrsVZr4 9CEkhzjNsVbqO78CiFbKnLWQhDniDFCsUhlqaoTEdNloOfNAJMbIlvNCytXVSbhyTww== 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 E90E1606A31A for ; Wed, 2 Dec 2026 09:29:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E90E1606A31A 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: 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: <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