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>
This commit is contained in:
Philipp Zabel 2021-03-04 17:01:39 +01:00
parent 534d3fa24e
commit 05cf8fffcd
1 changed files with 2 additions and 2 deletions

View File

@ -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