summaryrefslogtreecommitdiff
path: root/drivers/net/ipa/ipa_clock.h
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2021-08-04 10:36:24 -0500
committerDavid S. Miller <davem@davemloft.net>2021-08-05 11:27:05 +0100
commit73ff316dac17accc05e28ae4939426044fb437ec (patch)
tree56318c7603231c7225aaec8113362b0f7cb9119a /drivers/net/ipa/ipa_clock.h
parent8ee7c40a25c70951c6e5db8e921fd08e4e038c6d (diff)
net: ipa: move IPA power operations to ipa_clock.c
Move ipa_suspend() and ipa_resume(), as well as the definition of the ipa_pm_ops structure into "ipa_clock.c". Make ipa_pm_ops public and declare it as extern in "ipa_clock.h". This is part of centralizing IPA power management functionality into "ipa_clock.c" (the file will eventually get a name change). Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipa/ipa_clock.h')
-rw-r--r--drivers/net/ipa/ipa_clock.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ipa/ipa_clock.h b/drivers/net/ipa/ipa_clock.h
index 1fe634760e59..2f0310d5709c 100644
--- a/drivers/net/ipa/ipa_clock.h
+++ b/drivers/net/ipa/ipa_clock.h
@@ -11,6 +11,9 @@ struct device;
struct ipa;
struct ipa_clock_data;
+/* IPA device power management function block */
+extern const struct dev_pm_ops ipa_pm_ops;
+
/**
* ipa_clock_rate() - Return the current IPA core clock rate
* @ipa: IPA structure