Input: cyapa - fix endianness issues in gen5 firmware update support
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 19 Jan 2015 23:59:31 +0000 (15:59 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 22 Jan 2015 15:57:36 +0000 (07:57 -0800)
commit2be7256fe7f428a5627c368d6f32f4004df63df9
tree74a8a259dd3b88b40c3a64ff79c0c23b8a0ffac8
parent7b2171d7c43e1dc32afd3e0ebf004f1baa66ba92
Input: cyapa - fix endianness issues in gen5 firmware update support

gen5_bl_metadata_row_params structure has its fields specified with
explicit endianness, so we should not be trying to convert to native CPU
endianness when filling the structure.

Also fix firmware validation checks and misspelled field in
gen5_bl_metadata_row_params.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Reviewed-by: Dudley Du <dudl@cypress.com>
Tested-by: Dudley Du <dudl@cypress.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/cyapa_gen5.c