summaryrefslogtreecommitdiff
path: root/drivers/net/ipa/ipa_endpoint.h
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2022-05-19 18:12:17 +0300
committerDavid S. Miller <davem@davemloft.net>2022-05-20 13:12:24 +0300
commit660e52d651ab7faa20d1ba08ae90a306b023e395 (patch)
treefbb29038d335d841c858528f89678390ad6c9630 /drivers/net/ipa/ipa_endpoint.h
parentcf4e73a1667e620ef703ff1f86ae96471ffa80f6 (diff)
downloadlinux-660e52d651ab7faa20d1ba08ae90a306b023e395.tar.xz
net: ipa: save a copy of endpoint default config
All elements of the default endpoint configuration are used in the code when programming an endpoint for use. But none of the other configuration data is ever needed once things are initialized. So rather than saving a pointer to *all* of the configuration data, save a copy of only the endpoint configuration portion. This will eventually allow endpoint configuration to be modifiable at runtime. But even before that it means we won't keep a pointer to configuration data after when no longer needed. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipa/ipa_endpoint.h')
-rw-r--r--drivers/net/ipa/ipa_endpoint.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ipa/ipa_endpoint.h b/drivers/net/ipa/ipa_endpoint.h
index e8d1300a6002..39a12c249f66 100644
--- a/drivers/net/ipa/ipa_endpoint.h
+++ b/drivers/net/ipa/ipa_endpoint.h
@@ -136,7 +136,7 @@ struct ipa_endpoint {
u32 channel_id;
u32 endpoint_id;
bool toward_ipa;
- const struct ipa_endpoint_config *config;
+ struct ipa_endpoint_config config;
u32 trans_tre_max;
u32 evt_ring_id;