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>

(cherry picked from commit e40fec4ec9)
This commit is contained in:
Vladimir Kondratyev 2021-08-16 23:12:01 +03:00
parent 5517f7f9e7
commit ec86cee5db

View file

@ -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 */