mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
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>
This commit is contained in:
parent
03db20aaa3
commit
7ce73ee6dc
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user