Re: [PATCH] gpio: ljca: reduce struct allocation

From: Linus Walleij

Date: Tue Mar 10 2026 - 07:54:29 EST


On Mon, Mar 9, 2026 at 10:48 PM Rosen Penev <rosenp@xxxxxxxxx> wrote:

> > > + u8 connect_mode[];
> >
> > Please use __counted_by().
> Counted by what?
>
> __counted_by(gpio_info->num); does not work.

As with the other patch (IIRC) just add a new member to the struct
to hold the count.

Yours,
Linus Walleij