ion: clean up ioctls
authorColin Cross <ccross@android.com>
Sat, 14 Dec 2013 03:26:16 +0000 (19:26 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:57:19 +0000 (08:57 -0800)
commitdb866e3ded294aac1059d45d6497cf1bdbebaa04
tree2172ec856ceaf696e684036f6d521a4a264f328d
parenta82130f470893c4a5be3e3cfcdc72c427a41b630
ion: clean up ioctls

Convert the ion ioctls to use _IOW instead of _IOWR where
appropriate, and factor out the copy_from_user and copy_to_user
based on the _IOC_DIR bits.  For the existing incorrect ioctls,
add a function to wrap _IOC_DIR to return the corrected value.

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