Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e90c23a authored by Mike Tipton's avatar Mike Tipton
Browse files

clk: qcom: Add generic sync_state callback



Add generic sync_state function that can be used by qcom clock providers
(qcom_cc_sync_state). Currently this is just a simple wrapper around
clk_sync_state from the framework, but ultimately will contain
additional qcom-specific logic.

Change-Id: I936daafdd19cc7676daa4b9fbe712d9b3181395f
Signed-off-by: default avatarMike Tipton <mdtipton@codeaurora.org>
parent a7283078
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -354,4 +354,11 @@ int qcom_cc_probe_by_index(struct platform_device *pdev, int index,
}
EXPORT_SYMBOL_GPL(qcom_cc_probe_by_index);

void qcom_cc_sync_state(struct device *dev, const struct qcom_cc_desc *desc)
{
	dev_info(dev, "sync-state\n");
	clk_sync_state(dev);
}
EXPORT_SYMBOL(qcom_cc_sync_state);

MODULE_LICENSE("GPL v2");
+1 −0
Original line number Diff line number Diff line
@@ -74,4 +74,5 @@ extern int qcom_cc_probe(struct platform_device *pdev,
extern int qcom_cc_probe_by_index(struct platform_device *pdev, int index,
				  const struct qcom_cc_desc *desc);
extern const struct clk_ops clk_dummy_ops;
void qcom_cc_sync_state(struct device *dev, const struct qcom_cc_desc *desc);
#endif