summaryrefslogtreecommitdiff
path: root/syna_tcm2.c
diff options
context:
space:
mode:
authordavidycchen <davidycchen@google.com>2021-10-21 11:48:00 +0800
committerDavid Chen <davidycchen@google.com>2021-10-21 09:20:09 +0000
commit27d75c78db2a2c324f077618a3ecb2ff9be622be (patch)
treed8bd33aad0cc5d5aeedb5e230058896d91a9357a /syna_tcm2.c
parent4a947d1ba4f75eb46381fa62e6d6e768c082c21f (diff)
downloadsynaptics_touch-27d75c78db2a2c324f077618a3ecb2ff9be622be.tar.gz
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 <davidycchen@google.com> Change-Id: I91a82dd930c4fd9e202189f01332635913c959c1
Diffstat (limited to 'syna_tcm2.c')
-rw-r--r--syna_tcm2.c12
1 files changed, 5 insertions, 7 deletions
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: