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

Commit 83a7bd26 authored by Fei Mao's avatar Fei Mao Committed by Gerrit - the friendly Code Review server
Browse files

input: touchscreen: mxt: configure proper sleep state



Configure proper sleep state and touch works correctly
when device resume.

Change-Id: I06fc1dfd281cfa297fb8698a5b350aa062d603b2
Signed-off-by: default avatarFei Mao <feim1@codeaurora.org>
parent 122f4cad
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3575,8 +3575,12 @@ static int mxt_probe(struct i2c_client *client, const struct i2c_device_id *id)
	init_completion(&data->reset_completion);
	init_completion(&data->crc_completion);

#if defined(CONFIG_OF) && defined(CONFIG_DRM)
	data->suspend_mode = MXT_SUSPEND_T9_CTRL;
#else
	data->suspend_mode = dmi_check_system(chromebook_T9_suspend_dmi) ?
		MXT_SUSPEND_T9_CTRL : MXT_SUSPEND_DEEP_SLEEP;
#endif

	error = mxt_parse_device_properties(data);
	if (error)