The branch main has been updated by wulf:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=e40fec4ec9a7a6625b3e332d4f856eb1d05f0def

commit e40fec4ec9a7a6625b3e332d4f856eb1d05f0def
Author:     Vladimir Kondratyev <[email protected]>
AuthorDate: 2021-08-16 20:12:01 +0000
Commit:     Vladimir Kondratyev <[email protected]>
CommitDate: 2021-08-16 20:12:01 +0000

    evdev: Do not check maximal contact number for MT initialization
    
    This allows singletouch devices which use multitouch protocols to work.
    
    Reported by:    Mark Kane <mark_AT_kane_DOT_mn>
    MFC after:      1 week
---
 sys/dev/evdev/evdev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/dev/evdev/evdev.c b/sys/dev/evdev/evdev.c
index 086ee36333dc..bc28ae0734f9 100644
--- a/sys/dev/evdev/evdev.c
+++ b/sys/dev/evdev/evdev.c
@@ -316,8 +316,7 @@ evdev_register_common(struct evdev_dev *evdev)
        }
 
        /* Initialize multitouch protocol type B states */
-       if (bit_test(evdev->ev_abs_flags, ABS_MT_SLOT) &&
-           evdev->ev_absinfo != NULL && MAXIMAL_MT_SLOT(evdev) > 0)
+       if (bit_test(evdev->ev_abs_flags, ABS_MT_SLOT))
                evdev_mt_init(evdev);
 
        /* Estimate maximum report size */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to