From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 042F37F for ; Thu, 14 Sep 2023 04:10:48 +0000 (UTC) Received: from out-219.mta1.migadu.com (out-219.mta1.migadu.com [95.215.58.219]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A595E6 for ; Wed, 13 Sep 2023 21:10:47 -0700 (PDT) Date: Thu, 14 Sep 2023 14:09:20 +1000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jookia.org; s=key1; t=1694664646; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yrM9qkZn8IvCEMY+qCo428/XGoBHkCAW20Ms/r1EMvQ=; b=SvCBqS9+YdFjSk3JlB6a+4z2XZyW9YC14vqOWANyDdJ0K9q2KC3xQEvn2ZAP5IfVsW1Nkm Yx5gqo56tqHoeLQYgFwHGrfE1xqwg+wabeWzwhFe86ehYcOlvS5ykmYi3XCvfXKtpPU2f/ pTUdVrjOavf7W2m8vYUhCAmQZXQYs8EmFom/79y0TsckuoMCrP0Dwoiy7ozJHC7RW6qp8I wqKP9i+PeYdDnPkpAeTHni0MuigpIayV2N333014PhE9yhKn02w3XoYUvLsHAK8exME6DL FkY80CJyWoF3zILIfe9K/lRwcan+fQFPYF84KaKUt3CGcnw6mXRPp3vk4WsFcg== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: John Watts To: Jessica Zhang Cc: dri-devel@lists.freedesktop.org, Neil Armstrong , Conor Dooley , devicetree@vger.kernel.org, Sam Ravnborg , Chris Morgan , linux-kernel@vger.kernel.org, Jagan Teki , Rob Herring , Krzysztof Kozlowski , Shawn Guo Subject: Re: [RFC PATCH 5/8] drm/panel: nv3052c: Allow specifying registers per panel Message-ID: References: <20230911090206.3121440-1-contact@jookia.org> <20230911090206.3121440-6-contact@jookia.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT On Wed, Sep 13, 2023 at 02:34:38PM -0700, Jessica Zhang wrote: > Hi John, > > Having a separate panel_regs_len field seems a bit unnecessary to me. > > Looks like it's only being called in the panel prepare() and I don't seen > any reason why we shouldn't just call the ARRAY_SIZE() macro there. Can you call ARRAY_SIZE on an an array pointer? > > Thanks, > > Jessica Zhang John.