On 09/04/2024 11:46, Diogo Ivo wrote: > Convert the macros that manipulate the delay values to interpret their > index parameter as an integer to allow the introduction of loops. > > Signed-off-by: Diogo Ivo <diogo.ivo@xxxxxxxxxxxxxxxxxx> > --- > drivers/memory/tegra/tegra210-emc-cc-r21021.c | 33 +++++++------------ > 1 file changed, 11 insertions(+), 22 deletions(-) > > diff --git a/drivers/memory/tegra/tegra210-emc-cc-r21021.c b/drivers/memory/tegra/tegra210-emc-cc-r21021.c > index a80c3b575612..65157bd5dc24 100644 > --- a/drivers/memory/tegra/tegra210-emc-cc-r21021.c > +++ b/drivers/memory/tegra/tegra210-emc-cc-r21021.c > @@ -75,29 +75,29 @@ enum { > * The division portion of the average operation. > */ > #define __AVERAGE_PTFV(dev) \ > - ({ next->ptfv_list[PTFV_DQSOSC_MOVAVG_ ## dev ## _INDEX] = \ > - next->ptfv_list[PTFV_DQSOSC_MOVAVG_ ## dev ## _INDEX] / \ > + ({ next->ptfv_list[dev] = \ > + next->ptfv_list[dev] / \ Aren't you missing now () over dev? Are you sure this passes checkpatch --strict? Best regards, Krzysztof