Skip to contentSkip to conversation

cyttsp: Fix swap of mfg_stat and mfg_cmd registers

PATCH RESEND Javier Martinez Canillas 1 participant 1 message Jun 30, 2013 1 message not in the archive HID

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 29 lines · Matthias Kaehlcke

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.

---
 drivers/input/touchscreen/cyttsp_core.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/touchscreen/cyttsp_core.h +1 -2
index 1aa3c69..f1ebde3 100644
@@ -67,8 +67,8 @@ struct cyttsp_xydata {
 /* TTSP System Information interface definition */
 struct cyttsp_sysinfo_data {
        u8 hst_mode;
-       u8 mfg_cmd;
        u8 mfg_stat;
+       u8 mfg_cmd;
        u8 cid[3];
        u8 tt_undef1;
        u8 uid[8];
--

1.7.10.4

Quoted 1 line

--

Hi Matthias,

This patch has already been merged in Linus tree a few days ago with commit ID d3bf073aa.

Thanks a lot and best regards,
Javier