Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: cyttsp - fix swapped mfg_stat and mfg_cmd registers

The command and status register in the driver were swapped with
respect to the order specified in the datasheet (CY8CTMA140).
Confirmed with Cypress that the order in the datasheet is correct.

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Acked-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Matthias Kaehlcke and committed by
Dmitry Torokhov
d3bf073a fbd5e77e

+1 -1
+1 -1
drivers/input/touchscreen/cyttsp_core.h
··· 67 67 /* TTSP System Information interface definition */ 68 68 struct cyttsp_sysinfo_data { 69 69 u8 hst_mode; 70 - u8 mfg_cmd; 71 70 u8 mfg_stat; 71 + u8 mfg_cmd; 72 72 u8 cid[3]; 73 73 u8 tt_undef1; 74 74 u8 uid[8];