linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] gpio: aggregator: fix macros coding style error
@ 2025-07-31  9:16 Li Jun
  2025-07-31 10:14 ` Geert Uytterhoeven
  2025-08-11  9:10 ` Bartosz Golaszewski
  0 siblings, 2 replies; 4+ messages in thread
From: Li Jun @ 2025-07-31  9:16 UTC (permalink / raw)
  To: lijun01, geert+renesas, linus.walleij, brgl, linux-gpio

These changes just fix Linux Kernel Coding Style, no functional
improve.

-Macros with complex values should be enclosed in parentheses

Signed-off-by: Li Jun <lijun01@kylinos.cn>
---
 drivers/gpio/gpio-aggregator.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpio/gpio-aggregator.c b/drivers/gpio/gpio-aggregator.c
index 6f941db02c04..16c1ddc66013 100644
--- a/drivers/gpio/gpio-aggregator.c
+++ b/drivers/gpio/gpio-aggregator.c
@@ -247,8 +247,8 @@ struct gpiochip_fwd {
 	unsigned long tmp[];		/* values and descs for multiple ops */
 };
 
-#define fwd_tmp_values(fwd)	&(fwd)->tmp[0]
-#define fwd_tmp_descs(fwd)	(void *)&(fwd)->tmp[BITS_TO_LONGS((fwd)->chip.ngpio)]
+#define fwd_tmp_values(fwd)	(&(fwd)->tmp[0])
+#define fwd_tmp_descs(fwd)	((void *)&(fwd)->tmp[BITS_TO_LONGS((fwd)->chip.ngpio)])
 
 #define fwd_tmp_size(ngpios)	(BITS_TO_LONGS((ngpios)) + (ngpios))
 
-- 
2.25.1


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

* Re: [PATCH v3] gpio: aggregator: fix macros coding style error
  2025-07-31  9:16 [PATCH v3] gpio: aggregator: fix macros coding style error Li Jun
@ 2025-07-31 10:14 ` Geert Uytterhoeven
  2025-08-11  9:07   ` Bartosz Golaszewski
  2025-08-11  9:10 ` Bartosz Golaszewski
  1 sibling, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2025-07-31 10:14 UTC (permalink / raw)
  To: Li Jun; +Cc: geert+renesas, linus.walleij, brgl, linux-gpio

On Thu, 31 Jul 2025 at 11:16, Li Jun <lijun01@kylinos.cn> wrote:
> These changes just fix Linux Kernel Coding Style, no functional
> improve.
>
> -Macros with complex values should be enclosed in parentheses
>
> Signed-off-by: Li Jun <lijun01@kylinos.cn>

Please add tags given on earlier versions.
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH v3] gpio: aggregator: fix macros coding style error
  2025-07-31 10:14 ` Geert Uytterhoeven
@ 2025-08-11  9:07   ` Bartosz Golaszewski
  0 siblings, 0 replies; 4+ messages in thread
From: Bartosz Golaszewski @ 2025-08-11  9:07 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Li Jun, geert+renesas, linus.walleij, linux-gpio

On Thu, Jul 31, 2025 at 12:14 PM Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
>
> On Thu, 31 Jul 2025 at 11:16, Li Jun <lijun01@kylinos.cn> wrote:
> > These changes just fix Linux Kernel Coding Style, no functional
> > improve.
> >
> > -Macros with complex values should be enclosed in parentheses
> >
> > Signed-off-by: Li Jun <lijun01@kylinos.cn>
>
> Please add tags given on earlier versions.

And also the changelog between versions.

Bart

> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

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

* Re: [PATCH v3] gpio: aggregator: fix macros coding style error
  2025-07-31  9:16 [PATCH v3] gpio: aggregator: fix macros coding style error Li Jun
  2025-07-31 10:14 ` Geert Uytterhoeven
@ 2025-08-11  9:10 ` Bartosz Golaszewski
  1 sibling, 0 replies; 4+ messages in thread
From: Bartosz Golaszewski @ 2025-08-11  9:10 UTC (permalink / raw)
  To: geert+renesas, linus.walleij, brgl, linux-gpio, Li Jun
  Cc: Bartosz Golaszewski

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>


On Thu, 31 Jul 2025 17:16:37 +0800, Li Jun wrote:
> These changes just fix Linux Kernel Coding Style, no functional
> improve.
> 
> -Macros with complex values should be enclosed in parentheses
> 
> 

Applied, thanks!

[1/1] gpio: aggregator: fix macros coding style error
      https://git.kernel.org/brgl/linux/c/7ce73ee6dc5977fd9dbe8194e7e8073a2f9a50fb

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

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

end of thread, other threads:[~2025-08-11  9:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-31  9:16 [PATCH v3] gpio: aggregator: fix macros coding style error Li Jun
2025-07-31 10:14 ` Geert Uytterhoeven
2025-08-11  9:07   ` Bartosz Golaszewski
2025-08-11  9: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;
as well as URLs for NNTP newsgroup(s).