static int cyttsp_i2c_resume(struct device *dev)
{
    void *ts = dev_get_drvdata(dev);//struct cyttsp_i2c *ts = dev_get_drvdata(dev);
	int rc;

	//pr_info("%s: cyttsp_i2c = %p\n", __func__, ts);
	rc = cyttsp_resume(ts);
	if (rc == 0)
		pr_info("%s\n", __func__);//_cyttsp3_force_function.FT_ready_flag = true;
	else
		pr_err("%s: ERROR ztemt resume false\n", __func__);
	return rc;
}
Beispiel #2
0
static int cyttsp_i2c_resume(struct i2c_client *client)
{
	return cyttsp_resume(dev_get_drvdata(&client->dev));
}