diff options
| author | Rom Lemarchand <romlem@google.com> | 2013-10-23 19:30:58 -0700 | 
|---|---|---|
| committer | Rom Lemarchand <romlem@google.com> | 2013-10-24 20:21:09 +0000 | 
| commit | dcd2da8015c7ac2da6f57fc0d8c15b80e44c4aed (patch) | |
| tree | 2e369432f8d38c4d4b0377ef3e94ccd110c41cae /drivers/gpu | |
| parent | 50ce1106dc0d0e9a631795b5c51ae171d62c9910 (diff) | |
| download | olio-linux-3.10-dcd2da8015c7ac2da6f57fc0d8c15b80e44c4aed.tar.xz olio-linux-3.10-dcd2da8015c7ac2da6f57fc0d8c15b80e44c4aed.zip | |
ion: change ion_user_handle_t definition to int
Turn ion_user_handle_t to int. This change reflects the underlying type
returned by the ion driver.
Change-Id: I40390dae8138327769510525bf62e55877a4b37d
Signed-off-by: Rom Lemarchand <romlem@google.com>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/ion/ion.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/drivers/gpu/ion/ion.c b/drivers/gpu/ion/ion.c index 8fe7d523f72..c4d0a487823 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 = (ion_user_handle_t)handle->id; +		data.handle = handle->id;  		if (copy_to_user((void __user *)arg, &data, sizeof(data))) {  			ion_free(client, handle); @@ -1156,7 +1156,7 @@ static long ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)  				   sizeof(struct ion_handle_data)))  			return -EFAULT;  		mutex_lock(&client->lock); -		handle = ion_uhandle_get(client, (int)data.handle); +		handle = ion_uhandle_get(client, data.handle);  		mutex_unlock(&client->lock);  		if (!handle)  			return -EINVAL; @@ -1171,7 +1171,7 @@ static long ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)  		if (copy_from_user(&data, (void __user *)arg, sizeof(data)))  			return -EFAULT; -		handle = ion_uhandle_get(client, (int)data.handle); +		handle = ion_uhandle_get(client, data.handle);  		data.fd = ion_share_dma_buf_fd(client, handle);  		if (copy_to_user((void __user *)arg, &data, sizeof(data)))  			return -EFAULT; @@ -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 = (ion_user_handle_t)handle->id; +			data.handle = handle->id;  		if (copy_to_user((void __user *)arg, &data,  				 sizeof(struct ion_fd_data))) |