Re: [PATCH] pinctrl: tegra: use flexible array member for array

From: Linus Walleij

Date: Thu Mar 19 2026 - 09:27:28 EST


On Mon, Mar 16, 2026 at 12:10 AM Rosen Penev <rosenp@xxxxxxxxx> wrote:

> Simplifies allocation slightly by removing a kcalloc call and using
> struct_size.
>
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>

Since it's my own subsystem I could just introduce the __counted_by()
and extra variable when applying, so not gonna complain about that
this time.

Patch applied w/mods!

Yours,
Linus Walleij