Re: [PATCH] gpio: sim: Remove intermediate pointer variable and harden function

From: Maxwell Doose

Date: Fri Apr 24 2026 - 09:23:03 EST


On Fri, Apr 24, 2026 at 8:13 AM Bartosz Golaszewski <brgl@xxxxxxxxxx> wrote:
>
> On Fri, Apr 24, 2026 at 3:05 PM Maxwell Doose <m32285159@xxxxxxxxx> wrote:
> > I think some people might value the more explicit dereferencing, and with this
> > we also won't need to handle the overhead of assigning another pointer, but if
> > you want this removed thats fine by me.
> >
>
> I prefer to keep it as is.
>
> >
> > I can do that, but I'd prefer to separate the functional changes with
> > this one, so
> > expect another patch that fixes these. I'll remove those sysfs_emit changes for
> > now so that the commit history will be clean for when I come back with this
> > second patch.
> >
>
> Sure, let's drop the first part and do the conversion of the configfs
> show callbacks
>
> Bart

Sounds good. I'll get that patch out this afternoon, otherwise I'll be
away for most
of the weekend and I'll get it out Sunday evening.

best regards,
maxwell