Re: [PATCH] phy: qualcomm: usb-hs-28nm: use flex array
From: Konrad Dybcio
Date: Thu Mar 05 2026 - 05:09:39 EST
On 3/5/26 12:06 AM, Rosen Penev wrote:
> Allows simplifying allocation to a single kzalloc call.
>
> Also allows using __counted_by for extra runtime analysis.
>
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> ---
I don't see how this is an improvement - __counted_by() is useful for
cases where we don't know how many entries there are, but in this
case it's fully deterministic (as priv->num_clks is a compile-time
constant)
Konrad