tree: add the driver_data parameter to the IMAGE macro as well
The IMAGE macro takes an implicit driver_data argument. In order to make it obvious that we need it, let's put it as an explicit parameter. Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
This commit is contained in:
+2
-3
@@ -30,9 +30,8 @@
|
||||
|
||||
#include "object_heap.h"
|
||||
|
||||
#define IMAGE(id) \
|
||||
((struct object_image *)object_heap_lookup(&driver_data->image_heap, \
|
||||
id))
|
||||
#define IMAGE(data, id) \
|
||||
((struct object_image *)object_heap_lookup(&(data)->image_heap, id))
|
||||
#define IMAGE_ID_OFFSET 0x10000000
|
||||
|
||||
struct object_image {
|
||||
|
||||
Reference in New Issue
Block a user