ppdev: add support for compat ioctl
authorBamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Fri, 8 Jan 2016 07:50:49 +0000 (15:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 23:00:04 +0000 (15:00 -0800)
commit17a3596f2122b4d88dc0efe297aa2de7be1bb31c
tree645a7bf84204783fed3c760c1cb85482211fa08b
parent3b9ab374a1e6d3cd6d16231ec6fe11fe2c49a72a
ppdev: add support for compat ioctl

The arg of ioctl in ppdev is the pointer of integer except the
timeval in PPSETTIME, PPGETTIME. Different size of timeval
is already supported by the previous patches. So, it is safe
to add compat support.

Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/ppdev.c