X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=drivers%2Finput%2Fmisc%2Fuinput.c;h=f236a29a67aeec2ed44e45836b288357f954b62b;hp=736056897e5008219cf12ba0f3bbcafee5e1c164;hb=b3b03b8c3ce3c5095f81998d8783b25891a1ba13;hpb=d8fcbf62abc73a67fcb39345611b185ebd350807 diff --git a/drivers/input/misc/uinput.c b/drivers/input/misc/uinput.c index 736056897e50..f236a29a67ae 100644 --- a/drivers/input/misc/uinput.c +++ b/drivers/input/misc/uinput.c @@ -786,8 +786,14 @@ static long uinput_ioctl(struct file *file, unsigned int cmd, unsigned long arg) } #ifdef CONFIG_COMPAT + +#define UI_SET_PHYS_COMPAT _IOW(UINPUT_IOCTL_BASE, 108, compat_uptr_t) + static long uinput_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { + if (cmd == UI_SET_PHYS_COMPAT) + cmd = UI_SET_PHYS; + return uinput_ioctl_handler(file, cmd, arg, compat_ptr(arg)); } #endif