mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] gpiolib: remove trailing comma from sentinel in GPIO_LOOKUP_SINGLE
@ 2026-07-13 23:29 Dmitry Torokhov
  2026-07-14  8:41 ` Andy Shevchenko
  2026-07-15  8:10 ` Bartosz Golaszewski
  0 siblings, 2 replies; 6+ messages in thread
From: Dmitry Torokhov @ 2026-07-13 23:29 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Bartosz Golaszewski, Andy Shevchenko, linux-gpio, linux-kernel

The GPIO_LOOKUP_SINGLE macro defines a lookup table with a single entry
followed by an empty sentinel entry. The sentinel entry has a trailing
comma which is unnecessary. Remove it.

Assisted-by: Antigravity:gemini-3.5-flash
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
 include/linux/gpio/machine.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/gpio/machine.h b/include/linux/gpio/machine.h
index 5eb88f5d0630..1a141056716f 100644
--- a/include/linux/gpio/machine.h
+++ b/include/linux/gpio/machine.h
@@ -54,7 +54,7 @@ static struct gpiod_lookup_table _name = {				\
 	.dev_id = _dev_id,						\
 	.table = {							\
 		GPIO_LOOKUP(_key, _chip_hwnum, _con_id, _flags),	\
-		{},							\
+		{ }							\
 	},								\
 }
 
-- 
2.55.0.795.g602f6c329a-goog


-- 
Dmitry

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] gpiolib: remove trailing comma from sentinel in GPIO_LOOKUP_SINGLE
  2026-07-13 23:29 [PATCH] gpiolib: remove trailing comma from sentinel in GPIO_LOOKUP_SINGLE Dmitry Torokhov
@ 2026-07-14  8:41 ` Andy Shevchenko
  2026-07-15  8:11   ` Bartosz Golaszewski
  2026-07-15  8:10 ` Bartosz Golaszewski
  1 sibling, 1 reply; 6+ messages in thread
From: Andy Shevchenko @ 2026-07-14  8:41 UTC (permalink / raw)
  To: Dmitry Torokhov
  Cc: Linus Walleij, Bartosz Golaszewski, linux-gpio, linux-kernel

On Mon, Jul 13, 2026 at 04:29:16PM -0700, Dmitry Torokhov wrote:
> The GPIO_LOOKUP_SINGLE macro defines a lookup table with a single entry

GPIO_LOOKUP_SINGLE()

> followed by an empty sentinel entry. The sentinel entry has a trailing
> comma which is unnecessary. Remove it.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] gpiolib: remove trailing comma from sentinel in GPIO_LOOKUP_SINGLE
  2026-07-13 23:29 [PATCH] gpiolib: remove trailing comma from sentinel in GPIO_LOOKUP_SINGLE Dmitry Torokhov
  2026-07-14  8:41 ` Andy Shevchenko
@ 2026-07-15  8:10 ` Bartosz Golaszewski
  1 sibling, 0 replies; 6+ messages in thread
From: Bartosz Golaszewski @ 2026-07-15  8:10 UTC (permalink / raw)
  To: Linus Walleij, Dmitry Torokhov
  Cc: Bartosz Golaszewski, Bartosz Golaszewski, Andy Shevchenko,
	linux-gpio, linux-kernel


On Mon, 13 Jul 2026 16:29:16 -0700, Dmitry Torokhov wrote:
> The GPIO_LOOKUP_SINGLE macro defines a lookup table with a single entry
> followed by an empty sentinel entry. The sentinel entry has a trailing
> comma which is unnecessary. Remove it.
> 
> 

Applied, thanks!

[1/1] gpiolib: remove trailing comma from sentinel in GPIO_LOOKUP_SINGLE
      https://git.kernel.org/brgl/c/7cefedf0c4a2d943f96f440b433bf71a1a8261d7

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] gpiolib: remove trailing comma from sentinel in GPIO_LOOKUP_SINGLE
  2026-07-14  8:41 ` Andy Shevchenko
@ 2026-07-15  8:11   ` Bartosz Golaszewski
  2026-07-15  8:36     ` Andy Shevchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Bartosz Golaszewski @ 2026-07-15  8:11 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Linus Walleij, Bartosz Golaszewski, linux-gpio, linux-kernel,
	Dmitry Torokhov

On Tue, 14 Jul 2026 10:41:39 +0200, Andy Shevchenko
<andriy.shevchenko@linux.intel.com> said:
> On Mon, Jul 13, 2026 at 04:29:16PM -0700, Dmitry Torokhov wrote:
>> The GPIO_LOOKUP_SINGLE macro defines a lookup table with a single entry
>
> GPIO_LOOKUP_SINGLE()
>

I fixed it when applying.

>> followed by an empty sentinel entry. The sentinel entry has a trailing
>> comma which is unnecessary. Remove it.
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>

I queued it but I do consider it a bit of a needless churn TBH.

Bart

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] gpiolib: remove trailing comma from sentinel in GPIO_LOOKUP_SINGLE
  2026-07-15  8:11   ` Bartosz Golaszewski
@ 2026-07-15  8:36     ` Andy Shevchenko
  2026-07-15  9:08       ` Bartosz Golaszewski
  0 siblings, 1 reply; 6+ messages in thread
From: Andy Shevchenko @ 2026-07-15  8:36 UTC (permalink / raw)
  To: Bartosz Golaszewski
  Cc: Linus Walleij, linux-gpio, linux-kernel, Dmitry Torokhov

On Wed, Jul 15, 2026 at 08:11:06AM +0000, Bartosz Golaszewski wrote:
> On Tue, 14 Jul 2026 10:41:39 +0200, Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> said:
> > On Mon, Jul 13, 2026 at 04:29:16PM -0700, Dmitry Torokhov wrote:
> >> The GPIO_LOOKUP_SINGLE macro defines a lookup table with a single entry
> >
> > GPIO_LOOKUP_SINGLE()
> 
> I fixed it when applying.

Thanks!

> >> followed by an empty sentinel entry. The sentinel entry has a trailing
> >> comma which is unnecessary. Remove it.
> >
> > Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> 
> I queued it but I do consider it a bit of a needless churn TBH.

You should really be against Uwe's patches then! :-)

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] gpiolib: remove trailing comma from sentinel in GPIO_LOOKUP_SINGLE
  2026-07-15  8:36     ` Andy Shevchenko
@ 2026-07-15  9:08       ` Bartosz Golaszewski
  0 siblings, 0 replies; 6+ messages in thread
From: Bartosz Golaszewski @ 2026-07-15  9:08 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Linus Walleij, linux-gpio, linux-kernel, Dmitry Torokhov,
	Bartosz Golaszewski

On Wed, 15 Jul 2026 10:36:22 +0200, Andy Shevchenko
<andriy.shevchenko@linux.intel.com> said:
> On Wed, Jul 15, 2026 at 08:11:06AM +0000, Bartosz Golaszewski wrote:
>> On Tue, 14 Jul 2026 10:41:39 +0200, Andy Shevchenko
>> <andriy.shevchenko@linux.intel.com> said:
>> > On Mon, Jul 13, 2026 at 04:29:16PM -0700, Dmitry Torokhov wrote:
>> >> The GPIO_LOOKUP_SINGLE macro defines a lookup table with a single entry
>> >
>> > GPIO_LOOKUP_SINGLE()
>>
>> I fixed it when applying.
>
> Thanks!
>
>> >> followed by an empty sentinel entry. The sentinel entry has a trailing
>> >> comma which is unnecessary. Remove it.
>> >
>> > Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>>
>> I queued it but I do consider it a bit of a needless churn TBH.
>
> You should really be against Uwe's patches then! :-)
>

He's fixing more stuff and removing trailing commas is just part of it. And as
you can see - I did apply it and will apply Uwe's series too.

Bart

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-07-15  9:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-13 23:29 [PATCH] gpiolib: remove trailing comma from sentinel in GPIO_LOOKUP_SINGLE Dmitry Torokhov
2026-07-14  8:41 ` Andy Shevchenko
2026-07-15  8:11   ` Bartosz Golaszewski
2026-07-15  8:36     ` Andy Shevchenko
2026-07-15  9:08       ` Bartosz Golaszewski
2026-07-15  8:10 ` Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox