ion: update struct and type definitions to match kernel header
- Replacing struct ion_handle * with ion_user_handle_t
- Replacing heap_mask field name with heap_id_mask
Change-Id: Iaba1ccc62b9398a7b37c5a734bc21a9ecbbc8277
diff --git a/libion/ion_test.c b/libion/ion_test.c
index 8179b57..becae42 100644
--- a/libion/ion_test.c
+++ b/libion/ion_test.c
@@ -22,7 +22,7 @@
int test = -1;
size_t stride;
-int _ion_alloc_test(int *fd, struct ion_handle **handle)
+int _ion_alloc_test(int *fd, ion_user_handle_t *handle)
{
int ret;
@@ -40,7 +40,7 @@
void ion_alloc_test()
{
int fd, ret;
- struct ion_handle *handle;
+ ion_user_handle_t handle;
if(_ion_alloc_test(&fd, &handle))
return;
@@ -58,7 +58,7 @@
{
int fd, map_fd, ret;
size_t i;
- struct ion_handle *handle;
+ ion_user_handle_t handle;
unsigned char *ptr;
if(_ion_alloc_test(&fd, &handle))
@@ -99,7 +99,7 @@
void ion_share_test()
{
- struct ion_handle *handle;
+ ion_user_handle_t handle;
int sd[2];
int num_fd = 1;
struct iovec count_vec = {