]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: serport - add compat handling for SPIOCSTYPE ioctl
authorJohn Sung <penmount.touch@gmail.com>
Tue, 9 Sep 2014 17:06:51 +0000 (10:06 -0700)
committerZefan Li <lizefan@huawei.com>
Mon, 1 Dec 2014 10:02:29 +0000 (18:02 +0800)
commitdd3d82185d61b31589d5d9d99dda3d1877d0241c
treebe82bd61724dacb06a1c0ec192b87891917d5d84
parent3ffeeae6961bdfe56d685d3681319cf76b67c449
Input: serport - add compat handling for SPIOCSTYPE ioctl

commit a80d8b02751060a178bb1f7a6b7a93645a7a308b upstream.

When running a 32-bit inputattach utility in a 64-bit system, there will be
error code "inputattach: can't set device type". This is caused by the
serport device driver not supporting compat_ioctl, so that SPIOCSTYPE ioctl
fails.

Signed-off-by: John Sung <penmount.touch@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/input/serio/serport.c