Re: [RFC PATCH 5/8] drm/panel: nv3052c: Allow specifying registers per panel

From: John Watts
Date: Thu Sep 14 2023 - 00:10:51 EST


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.