Re: [PATCH v1 1/1] gpiolib: shared: Don't define variable in the middle of the code

From: Bartosz Golaszewski

Date: Wed Oct 14 2026 - 04:32:32 EST


On Tue, 13 Oct 2026 11:44:12 +0200, Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> said:
> While the C11 allows us to define variables in the code, we do not
> do this style (see more at [1]). Move the declaration to the top of
> the function.
>
> Link: https://lore.kernel.org/lkml/58fd478f408a34b578ee8d949c5c4b4da4d4f41d.camel@xxxxxxxxxxxxxxxxxxxxx/ [1]
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> ---

Doesn't apply on top of gpio/for-next.

While at it: the subject should be "gpio: shared: ..." for consistency.

Bart