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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 21:54:12 +0000 (14:54 -0700)
commit08fb11395c6d803a97b45e463375cb220d1c84d5
tree9a54a9e48f9eeed0c2f9adccbd0d7c892a345ee8
parentd283ad1a60a89680fe42534428d2baf29cc9f24a
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/serio/serport.c