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)
commitf2ac6cb9201399fa2b2146ea941c0c5ce2aa197a
treecab7365f543878d3f3358ab0141889e45ace6601
parentf477c7588bb167191f4162a380680204807316b7
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