Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: aggregator: fix macros coding style error

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>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20250731091637.595136-1-lijun01@kylinos.cn
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

authored by

Li Jun and committed by
Bartosz Golaszewski
7ce73ee6 03db20aa

+2 -2
+2 -2
drivers/gpio/gpio-aggregator.c
··· 247 247 unsigned long tmp[]; /* values and descs for multiple ops */ 248 248 }; 249 249 250 - #define fwd_tmp_values(fwd) &(fwd)->tmp[0] 251 - #define fwd_tmp_descs(fwd) (void *)&(fwd)->tmp[BITS_TO_LONGS((fwd)->chip.ngpio)] 250 + #define fwd_tmp_values(fwd) (&(fwd)->tmp[0]) 251 + #define fwd_tmp_descs(fwd) ((void *)&(fwd)->tmp[BITS_TO_LONGS((fwd)->chip.ngpio)]) 252 252 253 253 #define fwd_tmp_size(ngpios) (BITS_TO_LONGS((ngpios)) + (ngpios)) 254 254