Re: [PATCH 09/10] gpiolib: use gpiochip_dup_line_label() in for_each helpers

From: Bartosz Golaszewski
Date: Wed Nov 29 2023 - 15:56:00 EST


On Wed, Nov 29, 2023 at 3:52 PM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>
> On Wed, Nov 29, 2023 at 03:43:32PM +0100, Bartosz Golaszewski wrote:
> > On Wed, Nov 29, 2023 at 3:24 PM Bartosz Golaszewski <brgl@xxxxxxxx> wrote:
>
> ...
>
> > Any ideas how to handle this one? I was thinking something like:
> >
> > for (i = 0, char *p __free(kfree) = label; i < size; i++)
> >
> > would work but it doesn't.
>
> Probably you want to ask Peter Z for this.
>

Before I do, I'll give DEFINE_CLASS() a chance as it looks like it
could be the answer looking at how scoped_guard works.

Bart

> --
> With Best Regards,
> Andy Shevchenko
>
>