cyapa(4): Adapt to recent evdev KPI changes

MFC after:	2 weeks
This commit is contained in:
Vladimir Kondratyev 2021-09-02 22:28:05 +03:00
parent 527b6d60f8
commit 4836af0d42

View file

@ -1377,7 +1377,7 @@ cyapa_raw_input(struct cyapa_softc *sc, struct cyapa_regs *regs, int freq)
#ifdef EVDEV_SUPPORT
if (evdev_rcpt_mask & EVDEV_RCPT_HW_MOUSE) {
for (i = 0; i < nfingers; ++i) {
int32_t slot = evdev_get_mt_slot_by_tracking_id(
int slot = evdev_mt_id_to_slot(
sc->evdev, regs->touch[i].id);
if (slot == -1) {
if (cyapa_debug)