aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/evdev/evdev_mt.c
diff options
context:
space:
mode:
authorVladimir Kondratyev <wulf@FreeBSD.org>2017-07-23 20:35:26 +0000
committerVladimir Kondratyev <wulf@FreeBSD.org>2017-07-23 20:35:26 +0000
commit4c0a4665b8c58b5df0b0b4851733cc9ad94cff87 (patch)
treea656b7322ecf6cc5adc12dcf5d4c30e00f6c40cc /sys/dev/evdev/evdev_mt.c
parentea2e26b1ed8bb6f30264e8af66bb206c7b4970fc (diff)
Notes
Diffstat (limited to 'sys/dev/evdev/evdev_mt.c')
-rw-r--r--sys/dev/evdev/evdev_mt.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/sys/dev/evdev/evdev_mt.c b/sys/dev/evdev/evdev_mt.c
index 2425365265a4..e05b2aaa0b73 100644
--- a/sys/dev/evdev/evdev_mt.c
+++ b/sys/dev/evdev/evdev_mt.c
@@ -224,13 +224,9 @@ void
evdev_push_nfingers(struct evdev_dev *evdev, int32_t nfingers)
{
- if (evdev->ev_lock_type == EV_LOCK_INTERNAL)
- EVDEV_LOCK(evdev);
- else
- EVDEV_LOCK_ASSERT(evdev);
+ EVDEV_ENTER(evdev);
evdev_send_nfingers(evdev, nfingers);
- if (evdev->ev_lock_type == EV_LOCK_INTERNAL)
- EVDEV_UNLOCK(evdev);
+ EVDEV_EXIT(evdev);
}
void
@@ -264,13 +260,9 @@ void
evdev_push_mt_compat(struct evdev_dev *evdev)
{
- if (evdev->ev_lock_type == EV_LOCK_INTERNAL)
- EVDEV_LOCK(evdev);
- else
- EVDEV_LOCK_ASSERT(evdev);
+ EVDEV_ENTER(evdev);
evdev_send_mt_compat(evdev);
- if (evdev->ev_lock_type == EV_LOCK_INTERNAL)
- EVDEV_UNLOCK(evdev);
+ EVDEV_EXIT(evdev);
}
void