reset: ti-syscon: fix to_ti_syscon_reset_data macro
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 4 Mar 2021 16:01:39 +0000 (17:01 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 10 May 2021 07:41:43 +0000 (09:41 +0200)
commit05cf8fffcdeb47aef1203c08cbec5224fd3a0e1c
tree7f2456dcb60dd7c7cdb659509f7db41914272cb2
parent534d3fa24e9f45d21f4c4868c78690a32838d3fe
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>
drivers/reset/reset-ti-syscon.c