Input: elants_i2c - check Remark ID when attempting firmware update
authorJohnny.Chuang <johnny.chuang@emc.com.tw>
Thu, 12 Dec 2019 17:32:45 +0000 (09:32 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 12 Dec 2019 17:40:56 +0000 (09:40 -0800)
commitf0b57e1901178a8c84291408c5f8dc0d81ee4a86
tree6792fcbb0f30bb0cfbd20f2d09066f061746b7ac
parenta284e11c371e446371675668d8c8120a27227339
Input: elants_i2c - check Remark ID when attempting firmware update

To avoid flashing incompatible firmware onto a device we should check
whether "Remark ID" in firmware matches with the one in the controller.
This function is supported by Elan's latest version of boot code, so the
driver decides whether to perform the check based on the boot code version.

Signed-off-by: Johnny Chuang <johnny.chuang@emc.com.tw>
Link: https://lore.kernel.org/r/00a901d5af3c$193e9cd0$4bbbd670$@emc.com.tw
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/elants_i2c.c