ion: Fix compat support to use proper compat ioctl numbers
authorJohn Stultz <john.stultz@linaro.org>
Fri, 13 Dec 2013 22:24:58 +0000 (14:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:57:18 +0000 (08:57 -0800)
commit687258f7c89107154ed8d7967e0ad47e0f6f679f
tree5f616d7e37304f69154c5d12cd4510986f1fbdc7
parentc3a2fe03148f13b119c7bf0427a0526bdb288a92
ion: Fix compat support to use proper compat ioctl numbers

The compat support added to ion didn't provide compat ioctl numbers
(who's value depends on the compat structure size). So 32bit
applications would get an error when trying to make ioctl calls.

This patch adds the needed COMPAT_ macros and uses them in the
compat_ion_ioctl, translating them to their non-compat cmd when
calling the normal ioctl call.

Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/compat_ion.c