Re: [PATCH v3] phy: mediatek: tphy: simplify main allocation
From: Manivannan Sadhasivam
Date: Sat Oct 31 2026 - 13:12:37 EST
On 2026-10-12 10:34 -0700, Rosen Penev wrote:
> Use a flexible array member to replace kzalloc + kcalloc with a single
> kzalloc.
>
> Shuffled some code around as __counted_by requires the counting variable
> to be assigned before any array access.
>
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxxxxxxxx>
- Mani