summaryrefslogtreecommitdiffstats
path: root/drivers/net/ipa/ipa_mem.h
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2024-03-01 11:02:39 -0600
committerDavid S. Miller <davem@davemloft.net>2024-03-04 11:44:40 +0000
commit95c54a963b2445096adf5c92c8e30160f2cb1d8d (patch)
tree54fcff9f5588868eae79b02b58a83f8787ac8770 /drivers/net/ipa/ipa_mem.h
parenta47956e72a3e724f88c696944d197f7bf8442273 (diff)
downloadlinux-95c54a963b2445096adf5c92c8e30160f2cb1d8d.tar.gz
linux-95c54a963b2445096adf5c92c8e30160f2cb1d8d.tar.bz2
linux-95c54a963b2445096adf5c92c8e30160f2cb1d8d.zip
net: ipa: pass a platform device to ipa_mem_init()
Rather than using the platform device pointer field in the IPA pointer, pass a platform device pointer to ipa_mem_init(). Use that pointer throughout that function. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipa/ipa_mem.h')
-rw-r--r--drivers/net/ipa/ipa_mem.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ipa/ipa_mem.h b/drivers/net/ipa/ipa_mem.h
index 868e9c20e8c4..28aad00a151d 100644
--- a/drivers/net/ipa/ipa_mem.h
+++ b/drivers/net/ipa/ipa_mem.h
@@ -6,6 +6,8 @@
#ifndef _IPA_MEM_H_
#define _IPA_MEM_H_
+struct platform_device;
+
struct ipa;
struct ipa_mem_data;
@@ -100,7 +102,8 @@ int ipa_mem_setup(struct ipa *ipa); /* No ipa_mem_teardown() needed */
int ipa_mem_zero_modem(struct ipa *ipa);
-int ipa_mem_init(struct ipa *ipa, const struct ipa_mem_data *mem_data);
+int ipa_mem_init(struct ipa *ipa, struct platform_device *pdev,
+ const struct ipa_mem_data *mem_data);
void ipa_mem_exit(struct ipa *ipa);
#endif /* _IPA_MEM_H_ */