ion: Fix compat support to use proper compat ioctl numbers
authorJohn Stultz <john.stultz@linaro.org>
Fri, 15 Nov 2013 00:25:08 +0000 (16:25 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Fri, 15 Nov 2013 00:36:50 +0000 (16:36 -0800)
commiteec88854d8ecdab5e5d16ee50d95fb9c478114a2
tree95ab9f0ca06bfd6d693d0ba1883598361a2e6e7a
parent47e0f4d1dcbf4d84c8f7982e5f5ebaa5ba67ecc5
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.

Change-Id: I53636d4ec46d8dc5e694697aaf2d62b98bd78cb1
Signed-off-by: John Stultz <john.stultz@linaro.org>
drivers/staging/android/ion/compat_ion.c