hwspinlock: omap: Use index to get hwspinlock pointer
authorAndrew Davis <afd@ti.com>
Thu, 8 Feb 2024 16:51:14 +0000 (10:51 -0600)
committerBjorn Andersson <andersson@kernel.org>
Wed, 6 Mar 2024 04:01:14 +0000 (20:01 -0800)
commitcebaa386d5ee1a44a58c12f1d220f62cc567fdb0
treeaaa25cc7b3e0f6d52a7dec7ca3d75397ca69c770
parent8781ec87795a8812b22579ba7ccdc0fdc16ba003
hwspinlock: omap: Use index to get hwspinlock pointer

For loops with multiple initializers and increments are hard to read
and reason about, simplify this by using the looping index to index
into the hwspinlock array.

Signed-off-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20240208165114.63148-4-afd@ti.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/hwspinlock/omap_hwspinlock.c