[PATCH] phy: qualcomm: usb-hs-28nm: use flex array
Gustavo A. R. Silva
gustavo at embeddedor.com
Wed Mar 4 20:52:49 PST 2026
Hi!
On 3/5/26 19:06, Konrad Dybcio wrote:
> 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 at gmail.com>
>> ---
>
> 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)
Will this always be the case in the future (entries being a compile-time
constant)?
Thanks
-Gustavo
>
> Konrad
>
More information about the linux-phy
mailing list