mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
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: Mike Tipton <mdtipton@codeaurora.org>
This commit is contained in:
parent
1e204f604d
commit
3e035473b1
|
|
@ -350,4 +350,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");
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user