summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorRom Lemarchand <romlem@google.com>2013-10-23 15:09:11 -0700
committerRom Lemarchand <romlem@google.com>2013-10-24 12:08:28 +0000
commit29f271de6ffdf6a96375cd244986617e87afc8d0 (patch)
tree2339cb2c92c69eb0afb6e09d8ad0290ee0d6506f /drivers/gpu
parentb430123367e78a6557bac3cf1558bcb85193fb12 (diff)
downloadolio-linux-3.10-29f271de6ffdf6a96375cd244986617e87afc8d0.tar.xz
olio-linux-3.10-29f271de6ffdf6a96375cd244986617e87afc8d0.zip
ion: add new ion_user_handle_t type for the user-space token
Declare new ion_user_handle_t type to contain the token returned to user-space. This allows a 2-step migration of the user-space code to a new kernel header first, then will allow us to change the definition of the ion_user_handle_type_t to int without breaking the API. Change-Id: I4200b6600df8e56fe98cf1580a13a65cb25ec646 Signed-off-by: Rom Lemarchand <romlem@google.com> (cherry picked from commit ebb8269bbb05b06ecedca3e21b3e65f23d48eadd)
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/ion/ion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/ion/ion.c b/drivers/gpu/ion/ion.c
index 1d4c8876ab5..8fe7d523f72 100644
--- a/drivers/gpu/ion/ion.c
+++ b/drivers/gpu/ion/ion.c
@@ -1139,7 +1139,7 @@ static long ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
if (IS_ERR(handle))
return PTR_ERR(handle);
- data.handle = (struct ion_handle *)handle->id;
+ data.handle = (ion_user_handle_t)handle->id;
if (copy_to_user((void __user *)arg, &data, sizeof(data))) {
ion_free(client, handle);
@@ -1191,7 +1191,7 @@ static long ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
if (IS_ERR(handle))
ret = PTR_ERR(handle);
else
- data.handle = (struct ion_handle *)handle->id;
+ data.handle = (ion_user_handle_t)handle->id;
if (copy_to_user((void __user *)arg, &data,
sizeof(struct ion_fd_data)))