]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: use ipa_reg[] array for register offsets
authorAlex Elder <elder@linaro.org>
Mon, 26 Sep 2022 22:09:20 +0000 (17:09 -0500)
committerJakub Kicinski <kuba@kernel.org>
Wed, 28 Sep 2022 01:42:50 +0000 (18:42 -0700)
commit82a06807453a6c0c282b3238f28164970100ffcd
treeaa0c847fc814dcd5d756f4a69417b47bf1f1823c
parent07f120bcf76b6f0969a1bc18ce5b7a16555fadad
net: ipa: use ipa_reg[] array for register offsets

Use the array of register descriptors assigned at initialization
time to determine the offset (and where used, stride) for IPA
registers.  Issue a warning if an offset is requested for a register
that's not valid for the current system.

Remove all IPE_REG_*_OFFSET macros, as well as inline static
functions that returned register offsets.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_reg.c
drivers/net/ipa/ipa_reg.h