summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor_core@ameritech.net>2005-11-20 06:51:33 +0100
committerDmitry Torokhov <dtor_core@ameritech.net>2005-11-20 06:51:33 +0100
commit59c7c0377e00a3cbd7b71631177fb92166ceb437 (patch)
tree74457d6759338db05c29eb5dc766b8472b7bb496 /drivers
parentInput: uinput - convert to dynalloc allocation (diff)
downloadlinux-59c7c0377e00a3cbd7b71631177fb92166ceb437.tar.xz
linux-59c7c0377e00a3cbd7b71631177fb92166ceb437.zip
Input: uinput - add UI_SET_SWBIT ioctl
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/misc/uinput.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/input/misc/uinput.c b/drivers/input/misc/uinput.c
index 713260322137..4702ade804ac 100644
--- a/drivers/input/misc/uinput.c
+++ b/drivers/input/misc/uinput.c
@@ -495,6 +495,10 @@ static long uinput_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
retval = uinput_set_bit(arg, ffbit, FF_MAX);
break;
+ case UI_SET_SWBIT:
+ retval = uinput_set_bit(arg, swbit, SW_MAX);
+ break;
+
case UI_SET_PHYS:
if (udev->state == UIST_CREATED) {
retval = -EINVAL;