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

Commit 8a1d5631 authored by Abinaya P's avatar Abinaya P Committed by Gerrit - the friendly Code Review server
Browse files

input: synaptics_dsx_core: make clocks as optional for secure touch



Make clocks needed for secure touch as optional. Hence, even if the
clocks are not defined, just proceed further and initialise the secure
touch session.

Change-Id: Id8fb80ca0297bc1d1854fdc710abce6a4d2f9620
Signed-off-by: default avatarAbinaya P <abinayap@codeaurora.org>
parent 3f08a569
Loading
Loading
Loading
Loading
+6 −14
Original line number Diff line number Diff line
@@ -492,33 +492,25 @@ static int synaptics_i2c_change_pipe_owner(

static void synaptics_secure_touch_init(struct synaptics_rmi4_data *data)
{
	int ret = 0;
	data->st_initialized = 0;
	init_completion(&data->st_powerdown);
	init_completion(&data->st_irq_processed);
	/* Get clocks */
	data->core_clk = clk_get(data->pdev->dev.parent, "core_clk");
	if (IS_ERR(data->core_clk)) {
		ret = PTR_ERR(data->core_clk);
		dev_err(data->pdev->dev.parent,
			"%s: error on clk_get(core_clk):%d\n", __func__, ret);
		return;
		data->core_clk = NULL;
		dev_warn(data->pdev->dev.parent,
			"%s: core_clk is not defined\n", __func__);
	}

	data->iface_clk = clk_get(data->pdev->dev.parent, "iface_clk");
	if (IS_ERR(data->iface_clk)) {
		ret = PTR_ERR(data->iface_clk);
		dev_err(data->pdev->dev.parent,
			"%s: error on clk_get(iface_clk):%d\n", __func__, ret);
		goto err_iface_clk;
		data->iface_clk = NULL;
		dev_warn(data->pdev->dev.parent,
			"%s: iface_clk is not defined\n", __func__);
	}

	data->st_initialized = 1;
	return;

err_iface_clk:
		clk_put(data->core_clk);
		data->core_clk = NULL;
}
static void synaptics_secure_touch_notify(struct synaptics_rmi4_data *rmi4_data)
{