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

Commit c101c535 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "clk: qcom: lahaina: Add sync_state callbacks"

parents 9e370393 da19e485
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3007,11 +3007,17 @@ static int cam_cc_lahaina_probe(struct platform_device *pdev)
	return ret;
}

static void cam_cc_lahaina_sync_state(struct device *dev)
{
	qcom_cc_sync_state(dev, &cam_cc_lahaina_desc);
}

static struct platform_driver cam_cc_lahaina_driver = {
	.probe = cam_cc_lahaina_probe,
	.driver = {
		.name = "lahaina-cam_cc",
		.of_match_table = cam_cc_lahaina_match_table,
		.sync_state = cam_cc_lahaina_sync_state,
	},
};

+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
+6 −0
Original line number Diff line number Diff line
@@ -1567,11 +1567,17 @@ static int disp_cc_lahaina_probe(struct platform_device *pdev)
	return ret;
}

static void disp_cc_lahaina_sync_state(struct device *dev)
{
	qcom_cc_sync_state(dev, &disp_cc_lahaina_desc);
}

static struct platform_driver disp_cc_lahaina_driver = {
	.probe = disp_cc_lahaina_probe,
	.driver = {
		.name = "disp_cc-lahaina",
		.of_match_table = disp_cc_lahaina_match_table,
		.sync_state = disp_cc_lahaina_sync_state,
	},
};

+6 −0
Original line number Diff line number Diff line
@@ -4498,11 +4498,17 @@ static int gcc_lahaina_probe(struct platform_device *pdev)
	return ret;
}

static void gcc_lahaina_sync_state(struct device *dev)
{
	qcom_cc_sync_state(dev, &gcc_lahaina_desc);
}

static struct platform_driver gcc_lahaina_driver = {
	.probe = gcc_lahaina_probe,
	.driver = {
		.name = "lahaina-gcc",
		.of_match_table = gcc_lahaina_match_table,
		.sync_state = gcc_lahaina_sync_state,
	},
};

Loading