summaryrefslogtreecommitdiff
path: root/drivers/net/ipa/ipa_smp2p.h
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2024-03-01 11:02:41 -0600
committerDavid S. Miller <davem@davemloft.net>2024-03-04 11:44:41 +0000
commit81d65f3413da3fe8158ac3ead6270035db1c0dde (patch)
treec2ff13c8bc4c3c11d3247eece11be4a0697d3c38 /drivers/net/ipa/ipa_smp2p.h
parent59622a8fb45350bf8028c350dd20958fa8a77279 (diff)
net: ipa: pass a platform device to ipa_smp2p_init()
Rather than using the platform device pointer field in the IPA pointer, pass a platform device pointer to ipa_smp2p_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_smp2p.h')
-rw-r--r--drivers/net/ipa/ipa_smp2p.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/ipa/ipa_smp2p.h b/drivers/net/ipa/ipa_smp2p.h
index 9b969b03d1a4..2a3d8eefb13b 100644
--- a/drivers/net/ipa/ipa_smp2p.h
+++ b/drivers/net/ipa/ipa_smp2p.h
@@ -8,17 +8,20 @@
#include <linux/types.h>
+struct platform_device;
+
struct ipa;
/**
* ipa_smp2p_init() - Initialize the IPA SMP2P subsystem
* @ipa: IPA pointer
+ * @pdev: Platform device pointer
* @modem_init: Whether the modem is responsible for GSI initialization
*
* Return: 0 if successful, or a negative error code
- *
*/
-int ipa_smp2p_init(struct ipa *ipa, bool modem_init);
+int ipa_smp2p_init(struct ipa *ipa, struct platform_device *pdev,
+ bool modem_init);
/**
* ipa_smp2p_exit() - Inverse of ipa_smp2p_init()