]> git.baikalelectronics.ru Git - kernel.git/commit
Input: atmel_mxt_ts - add check for incorrect firmware file format
authorNick Dyer <nick.dyer@itdev.co.uk>
Mon, 19 May 2014 06:15:01 +0000 (23:15 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 19 May 2014 06:27:29 +0000 (23:27 -0700)
commit98bbd80666c52faaa42bf88e03ea0a5a55691a96
treecab7365f543878d3f3358ab0141889e45ace6601
parentefc57559afa1654cfde5e81fd1129e8d5e8f649c
Input: atmel_mxt_ts - add check for incorrect firmware file format

Atmel supplies firmware files in ASCII HEX format (.enc) which must be
converted before they can be loaded by kernel driver. Try to detect
the error and print a friendly error message rather than feeding junk
to the bootloader.

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Acked-by: Benson Leung <bleung@chromium.org>
Acked-by: Yufeng Shen <miletus@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c