diff options
author | Rom Lemarchand <romlem@google.com> | 2013-10-23 15:09:11 -0700 |
---|---|---|
committer | Rom Lemarchand <romlem@google.com> | 2013-10-24 12:08:28 +0000 |
commit | 29f271de6ffdf6a96375cd244986617e87afc8d0 (patch) | |
tree | 2339cb2c92c69eb0afb6e09d8ad0290ee0d6506f /include | |
parent | b430123367e78a6557bac3cf1558bcb85193fb12 (diff) |
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 'include')
-rw-r--r-- | include/linux/ion.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/ion.h b/include/linux/ion.h index 440f4b3b0a4..40ea332ebfa 100644 --- a/include/linux/ion.h +++ b/include/linux/ion.h @@ -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; }; /** |