Input: mms114 - support MMS136
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 10 Apr 2021 06:04:35 +0000 (23:04 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 10 Apr 2021 06:23:01 +0000 (23:23 -0700)
commit53fefdd1d3a3403d8c44e28898d1031d8763b913
treecfbe732cedc6f1434794f7e55e1ca0aae2488c7d
parenta811ecf8f1dbae02b7d54d6e2e33cc6bce1f1200
Input: mms114 - support MMS136

The Melfas MMS136 is similar to the other MMS variants but
has event packages of 6 bytes rather than 8 as the others.

The define is named FINGER_EVENT_SZ in the vendor drivers
so I renamed it from MMS*_PACKET_SZ to MMS*_EVENT_SZ.

After this patch, the touchscreen on the Samsung GT-I8530
works fine with PostmarketOS.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20210404232619.3092682-1-linus.walleij@linaro.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/mms114.c