Skip to content

Commit

Permalink
reset: ti-syscon: fix to_ti_syscon_reset_data macro
Browse files Browse the repository at this point in the history
[ Upstream commit 05cf8ff ]

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>
  • Loading branch information
pH5 authored and gregkh committed Jul 25, 2021
1 parent cabcb57 commit 4e8eb51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/reset/reset-ti-syscon.c
Expand Up @@ -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
Expand Down

0 comments on commit 4e8eb51

Please sign in to comment.