From 27d75c78db2a2c324f077618a3ecb2ff9be622be Mon Sep 17 00:00:00 2001 From: davidycchen Date: Thu, 21 Oct 2021 11:48:00 +0800 Subject: synaptics: update dirver verison to 0112 New driver provided by vendor with following difference: 1. Update firmware with different config id. 2. Input device re-creation after firmware update. Bug: 199104450 Test: Touch is functional. Signed-off-by: davidycchen Change-Id: I91a82dd930c4fd9e202189f01332635913c959c1 --- syna_tcm2.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'syna_tcm2.c') diff --git a/syna_tcm2.c b/syna_tcm2.c index cbbc153..7fcb58d 100644 --- a/syna_tcm2.c +++ b/syna_tcm2.c @@ -910,13 +910,11 @@ static void syna_dev_reflash_startup_work(struct work_struct *work) goto exit; } - /* allocate the input device if not registered yet */ - if (tcm->input_dev == NULL) { - retval = syna_dev_set_up_input_device(tcm); - if (retval < 0) { - LOGE("Fail to register input device\n"); - goto exit; - } + /* check and re-create the input device if needed */ + retval = syna_dev_set_up_input_device(tcm); + if (retval < 0) { + LOGE("Fail to register input device\n"); + goto exit; } exit: -- cgit v1.2.3