summaryrefslogtreecommitdiff
path: root/drivers/reset/reset-ti-syscon.c
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2021-03-04 19:01:39 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-25 15:36:11 +0300
commit4e8eb51ae633d14544b212675717dc6e2850ee6a (patch)
tree337f67aed7effd9d3a2b565ae1924ce2c3cb65ad /drivers/reset/reset-ti-syscon.c
parentcabcb576fc3e915669feff9c1976b6f545d4cccc (diff)
downloadlinux-4e8eb51ae633d14544b212675717dc6e2850ee6a.tar.xz
reset: ti-syscon: fix to_ti_syscon_reset_data macro
[ Upstream commit 05cf8fffcdeb47aef1203c08cbec5224fd3a0e1c ] 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>
Diffstat (limited to 'drivers/reset/reset-ti-syscon.c')
-rw-r--r--drivers/reset/reset-ti-syscon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/reset/reset-ti-syscon.c b/drivers/reset/reset-ti-syscon.c
index ef97c4dbbb4e..742056a2a756 100644
--- a/drivers/reset/reset-ti-syscon.c
+++ b/drivers/reset/reset-ti-syscon.c
@@ -58,8 +58,8 @@ struct ti_syscon_reset_data {
unsigned int nr_controls;
};
-#define to_ti_syscon_reset_data(rcdev) \
- container_of(rcdev, struct ti_syscon_reset_data, rcdev)
+#define to_ti_syscon_reset_data(_rcdev) \
+ container_of(_rcdev, struct ti_syscon_reset_data, rcdev)
/**
* ti_syscon_reset_assert() - assert device reset