From: Dmitry Torokhov <dtor_core@ameritech.net>
To: Vojtech Pavlik <vojtech@suse.cz>
Cc: Andrew Morton <akpm@osdl.org>, Greg KH <greg@kroah.com>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Mark Vojkovich <mvojkovi@XFree86.Org>,
Michael Schmitz <schmitz@zirkon.biophys.uni-duesseldorf.de>,
Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org>,
Neil Brown <neilb@suse.de>,
linux-kernel@vger.kernel.org
Subject: [patch 2/3] Uinput: add UI_SET_SWBIT ioctl
Date: Fri, 18 Nov 2005 23:38:42 -0500 [thread overview]
Message-ID: <20051119044255.007314000.dtor_core@ameritech.net> (raw)
In-Reply-To: 20051119043840.747384000.dtor_core@ameritech.net
[-- Attachment #1: uinput-add-sw-ioctl.patch --]
[-- Type: text/plain, Size: 1294 bytes --]
Input: uinput - add UI_SET_SWBIT ioctl
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---
drivers/input/misc/uinput.c | 4 ++++
include/linux/uinput.h | 1 +
2 files changed, 5 insertions(+)
Index: work/drivers/input/misc/uinput.c
===================================================================
--- work.orig/drivers/input/misc/uinput.c
+++ work/drivers/input/misc/uinput.c
@@ -495,6 +495,10 @@ static long uinput_ioctl(struct file *fi
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;
Index: work/include/linux/uinput.h
===================================================================
--- work.orig/include/linux/uinput.h
+++ work/include/linux/uinput.h
@@ -91,6 +91,7 @@ struct uinput_ff_erase {
#define UI_SET_SNDBIT _IOW(UINPUT_IOCTL_BASE, 106, int)
#define UI_SET_FFBIT _IOW(UINPUT_IOCTL_BASE, 107, int)
#define UI_SET_PHYS _IOW(UINPUT_IOCTL_BASE, 108, char*)
+#define UI_SET_SWBIT _IOW(UINPUT_IOCTL_BASE, 109, int)
#define UI_BEGIN_FF_UPLOAD _IOWR(UINPUT_IOCTL_BASE, 200, struct uinput_ff_upload)
#define UI_END_FF_UPLOAD _IOW(UINPUT_IOCTL_BASE, 201, struct uinput_ff_upload)
next prev parent reply other threads:[~2005-11-19 4:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-19 4:38 [patch 0/3] Uinput update Dmitry Torokhov
2005-11-19 4:38 ` [patch 1/3] Uinput: convert to dynalloc allocation Dmitry Torokhov
2005-11-19 4:38 ` Dmitry Torokhov [this message]
2005-11-19 4:38 ` [patch 3/3] Uinput: dont use "interruptible" in FF code Dmitry Torokhov
2005-11-19 7:46 ` [patch 0/3] Uinput update Vojtech Pavlik
2005-11-19 9:27 ` Neil Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051119044255.007314000.dtor_core@ameritech.net \
--to=dtor_core@ameritech.net \
--cc=akpm@osdl.org \
--cc=aris@cathedrallabs.org \
--cc=benh@kernel.crashing.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mvojkovi@XFree86.Org \
--cc=neilb@suse.de \
--cc=schmitz@zirkon.biophys.uni-duesseldorf.de \
--cc=vojtech@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.