add private field in ion_heap and ion_platform_heap structure

copy private field from platform configuration to internal heap structure.

Change-Id: Ia7571d88fc2f72f5d655fb6f6b54fde389d96c85
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
[laura: Rebase context fixes]
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
This commit is contained in:
Benjamin Gaignard 2012-06-25 15:30:18 -07:00 committed by Stephen Boyd
parent bf8847b852
commit 522629b432
3 changed files with 5 additions and 0 deletions

View file

@ -55,6 +55,7 @@ struct ion_heap *ion_heap_create(struct ion_platform_heap *heap_data)
heap->name = heap_data->name;
heap->id = heap_data->id;
heap->priv = heap_data->priv;
return heap;
}

View file

@ -159,6 +159,7 @@ struct ion_heap_ops {
* allocating. These are specified by platform data and
* MUST be unique
* @name: used for debugging
* @priv: private heap data
*
* Represents a pool of memory from which buffers can be made. In some
* systems the only heap is regular system memory allocated via vmalloc.
@ -172,6 +173,7 @@ struct ion_heap {
struct ion_heap_ops *ops;
int id;
const char *name;
void *priv;
};
/**

View file

@ -84,6 +84,7 @@ struct ion_buffer;
* @memory_type:Memory type used for the heap
* @has_outer_cache: set to 1 if outer cache is used, 0 otherwise.
* @extra_data: Extra data specific to each heap type
* @priv: heap private data
*/
struct ion_platform_heap {
enum ion_heap_type type;
@ -94,6 +95,7 @@ struct ion_platform_heap {
enum ion_memory_types memory_type;
unsigned int has_outer_cache;
void *extra_data;
void *priv;
};
/**