net: ipa: index resource limits with type
authorAlex Elder <elder@linaro.org>
Fri, 26 Mar 2021 15:11:16 +0000 (10:11 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Mar 2021 22:02:38 +0000 (15:02 -0700)
commit4bcfb35e7af9413a4715ec2c74f51e20043c70e2
tree92546da444e9958e674e2510f5ac7d2a2a631d8c
parentfd2b7bc3211342e003d00625973318613e0aa2fe
net: ipa: index resource limits with type

Remove the type field from the ipa_resource_src and ipa_resource_dst
structures, and instead use that value as the index into the arrays
of source and destination resources.

Change ipa_resource_config_src() and ipa_resource_config_dst() so
the resource type is passed in as an argument.

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_resource.c