Skip to content

Commit 7ce73ee

Browse files
GT119119Bartosz Golaszewski
authored andcommitted
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>
1 parent 03db20a commit 7ce73ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpio/gpio-aggregator.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ struct gpiochip_fwd {
247247
unsigned long tmp[]; /* values and descs for multiple ops */
248248
};
249249

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)])
252252

253253
#define fwd_tmp_size(ngpios) (BITS_TO_LONGS((ngpios)) + (ngpios))
254254

0 commit comments

Comments
 (0)