Re: [PATCH 4/5] gpiolib: use __free(gpiod_put_array) in gpiod_get_array()
From: Linus Walleij
Date: Wed Nov 04 2026 - 08:11:41 EST
On Wed, Oct 21, 2026 at 9:02 PM Dmitry Torokhov
<dmitry.torokhov@xxxxxxxxx> wrote:
> Switch to using __free(gpiod_put_array) scope-based cleanup facility
> in gpiod_get_array(), simplifying error unwinding and eliminating manual
> gpiod_put_array() calls.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>
Yours,
Linus Walleij