]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2928ddf645738bee0c80ef9154ac7353aa3d1a4b
tree92546da444e9958e674e2510f5ac7d2a2a631d8c
parentdc2f0b92bcacefe1dd3c3557f779cb54bde4ee9b
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