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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 5 Nov 2014 20:27:42 +0000 (20:27 +0000)
commit9a91e2d1a2a7c521b1ca22dd4216bc1f4fb81cbc
treee5c81d449e5eeb499bce0f33553d631fcf098dbb
parent3ab3b3b67868458de3b047e199c0efe8119ef0de
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: Ben Hutchings <ben@decadent.org.uk>
drivers/input/serio/serport.c