|
@@ -20,6 +20,8 @@
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
struct ion_handle;
|
|
|
+typedef struct ion_handle *ion_user_handle_t;
|
|
|
+
|
|
|
/**
|
|
|
* enum ion_heap_types - list of all possible types of heaps
|
|
|
* @ION_HEAP_TYPE_SYSTEM: memory allocated via vmalloc
|
|
@@ -268,7 +270,7 @@ struct ion_allocation_data {
|
|
|
size_t align;
|
|
|
unsigned int heap_id_mask;
|
|
|
unsigned int flags;
|
|
|
- struct ion_handle *handle;
|
|
|
+ ion_user_handle_t handle;
|
|
|
};
|
|
|
|
|
|
/**
|
|
@@ -282,7 +284,7 @@ struct ion_allocation_data {
|
|
|
* provides the file descriptor and the kernel returns the handle.
|
|
|
*/
|
|
|
struct ion_fd_data {
|
|
|
- struct ion_handle *handle;
|
|
|
+ ion_user_handle_t handle;
|
|
|
int fd;
|
|
|
};
|
|
|
|
|
@@ -291,7 +293,7 @@ struct ion_fd_data {
|
|
|
* @handle: a handle
|
|
|
*/
|
|
|
struct ion_handle_data {
|
|
|
- struct ion_handle *handle;
|
|
|
+ ion_user_handle_t handle;
|
|
|
};
|
|
|
|
|
|
/**
|