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

reset: ti-syscon: fix to_ti_syscon_reset_data macro

The to_ti_syscon_reset_data macro currently only works if the
parameter passed into it is called 'rcdev'.

Fixes a checkpatch --strict issue:

CHECK: Macro argument reuse 'rcdev' - possible side-effects?
#53: FILE: drivers/reset/reset-ti-syscon.c:53:
+#define to_ti_syscon_reset_data(rcdev) \
+ container_of(rcdev, struct ti_syscon_reset_data, rcdev)

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

+2 -2
+2 -2
drivers/reset/reset-ti-syscon.c
··· 58 58 unsigned int nr_controls; 59 59 }; 60 60 61 - #define to_ti_syscon_reset_data(rcdev) \ 62 - container_of(rcdev, struct ti_syscon_reset_data, rcdev) 61 + #define to_ti_syscon_reset_data(_rcdev) \ 62 + container_of(_rcdev, struct ti_syscon_reset_data, rcdev) 63 63 64 64 /** 65 65 * ti_syscon_reset_assert() - assert device reset