forked from marfrit/libva-v4l2-request-fourier
tree: add the driver_data parameter to the BUFFER macro as well
The BUFFER 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:
+1
-1
@@ -31,7 +31,7 @@
|
||||
#include "object_heap.h"
|
||||
#include "sunxi_cedrus.h"
|
||||
|
||||
#define BUFFER(id) ((struct object_buffer *) object_heap_lookup(&driver_data->buffer_heap, id))
|
||||
#define BUFFER(data, id) ((struct object_buffer *) object_heap_lookup(&(data)->buffer_heap, id))
|
||||
#define BUFFER_ID_OFFSET 0x08000000
|
||||
|
||||
struct object_buffer {
|
||||
|
||||
Reference in New Issue
Block a user