]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
soc: fsl: cpm1: tsa: Use ARRAY_SIZE() instead of hardcoded integer values
authorHerve Codina <herve.codina@bootlin.com>
Thu, 8 Aug 2024 07:11:02 +0000 (09:11 +0200)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 3 Sep 2024 05:49:18 +0000 (07:49 +0200)
commit58edcace87b0f5d210b171803988ff7602b2410b
treef91042e2546d6ee68d067077f338d782760544fd
parent442f3799fa387ab4c0c9b2d20490d582b96532d1
soc: fsl: cpm1: tsa: Use ARRAY_SIZE() instead of hardcoded integer values

Loops handling the tdm array use hardcoded size and the initialization
part uses hardcoded indexes to initialize the array.

Use ARRAY_SIZE() to avoid the hardcoded size and initialize the array
using a loop.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/20240808071132.149251-10-herve.codina@bootlin.com
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
drivers/soc/fsl/qe/tsa.c