net: ipa: redefine struct ipa_mem_data
authorAlex Elder <elder@linaro.org>
Mon, 4 May 2020 17:58:57 +0000 (12:58 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2020 18:26:55 +0000 (11:26 -0700)
commit3128aae8c439af18048167e3cd5e31680cd190b9
tree2eef7304a7eeaf245a1c860ed6dabb01520de1e6
parent8456c54408a21cddc5c5a3b35d2e77ddd58d20bc
net: ipa: redefine struct ipa_mem_data

The ipa_mem_data structure type was never actually used.  Instead,
the IPA memory regions were defined using the ipa_mem structure.

Redefine struct ipa_mem_data so it encapsulates the array of IPA-local
memory region descriptors along with the count of entries in that
array.  Pass just an ipa_mem structure pointer to ipa_mem_init().

Rename the ipa_mem_data[] array ipa_mem_local_data[] to emphasize
that the memory regions it defines are IPA-local memory.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_data-sc7180.c
drivers/net/ipa/ipa_data-sdm845.c
drivers/net/ipa/ipa_data.h
drivers/net/ipa/ipa_main.c
drivers/net/ipa/ipa_mem.c
drivers/net/ipa/ipa_mem.h