summaryrefslogtreecommitdiffstats
path: root/sys/dev/evdev/evdev.c
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2016-10-22 15:26:32 +0000
committergonzo <gonzo@FreeBSD.org>2016-10-22 15:26:32 +0000
commit91a5c089a3cdc551d5461528054a53caa39434bd (patch)
tree14ebee2d33dc1ec879bda17dafb73446c09a0af2 /sys/dev/evdev/evdev.c
parent7c7b3affd93245289893038d162844ffca532dff (diff)
downloadFreeBSD-src-91a5c089a3cdc551d5461528054a53caa39434bd.zip
FreeBSD-src-91a5c089a3cdc551d5461528054a53caa39434bd.tar.gz
MFC r306530, r306531, r306532, r306579:
r306530: Declare a module for evdev and add dependency to ukbd(4) and ums(4) Prepare for making evdev a module. "Pure" evdev device drivers (like touchscreen) and evdev itself can be built as a modules regardless of "options EVDEV" in kernel config. So if people does not require evdev functionality in hybrid drivers like ums and ukbd they can, for instance, kldload evdev and utouchscreen to run FreeBSD in kiosk mode. r306531: Add dependency to evdev module (if required) r306532: Add dependency to evdev module r306579: Modularize evdev - Convert "options EVDEV" to "device evdev" and "device uinput", add modules for both new devices. They are isolated subsystems and do not require any compile-time changes to general kernel subsytems - For hybrid drivers that have evdev as an optional way to deliver input events add option EVDEV_SUPPORT. Update all existing hybrid drivers to use it instead of EVDEV - Remove no-op DECLARE_MODULE in evdev, it's not required, MODULE_VERSION is enough - Add evdev module dependency to uinput Submitted by: Vladimir Kondratiev <wulf@cicgroup.ru>
Diffstat (limited to 'sys/dev/evdev/evdev.c')
-rw-r--r--sys/dev/evdev/evdev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/evdev/evdev.c b/sys/dev/evdev/evdev.c
index a2d2a92..095552e 100644
--- a/sys/dev/evdev/evdev.c
+++ b/sys/dev/evdev/evdev.c
@@ -33,6 +33,7 @@
#include <sys/systm.h>
#include <sys/param.h>
#include <sys/kernel.h>
+#include <sys/module.h>
#include <sys/conf.h>
#include <sys/malloc.h>
#include <sys/bitstring.h>
@@ -916,3 +917,5 @@ evdev_stop_repeat(struct evdev_dev *evdev)
evdev->ev_rep_key = KEY_RESERVED;
}
}
+
+MODULE_VERSION(evdev, 1);
OpenPOWER on IntegriCloud