mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
reset: ti-syscon: fix to_ti_syscon_reset_data macro
[ Upstream commit 05cf8fffcd ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
cabcb576fc
commit
4e8eb51ae6
@@ -58,8 +58,8 @@ struct ti_syscon_reset_data {
|
|||||||
unsigned int nr_controls;
|
unsigned int nr_controls;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define to_ti_syscon_reset_data(rcdev) \
|
#define to_ti_syscon_reset_data(_rcdev) \
|
||||||
container_of(rcdev, struct ti_syscon_reset_data, rcdev)
|
container_of(_rcdev, struct ti_syscon_reset_data, rcdev)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ti_syscon_reset_assert() - assert device reset
|
* ti_syscon_reset_assert() - assert device reset
|
||||||
|
|||||||
Reference in New Issue
Block a user