コード例 #1
0
static int HighResistanceTest(struct synaptics_ts_data *ts)
{
	u8 data;

	TestPreparation(ts);

	/*Assign report type for High Resistance report*/
	data = 0x04;
	touch_i2c_write(ts->client, REPORT_TYPE_REG, 1, &data);

	if (ReadHighResistance(ts))
		return LGTC_FAIL;

	return LGTC_SUCCESS;
}
コード例 #2
0
static int HighResistanceTest(struct synaptics_ts_data *ts)
{
	int ret = 0;
	u8 data;

	TestPreparation(ts);

	/*Assign report type for High Resistance report*/
	data = 0x04;
	ret = Touch_I2C_Write(ts->client, REPORT_TYPE_REG, &data, 1);

	if (ReadHighResistance(ts))
		return TOUCH_FAIL;

	return TOUCH_SUCCESS;
}