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:
Maxime Ripard
2018-07-16 14:06:26 +02:00
parent 6194f1e7da
commit 5aa1604a6c
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ VAStatus SunxiCedrusDeriveImage(VADriverContextP context,
if (status != VA_STATUS_SUCCESS)
return status;
buffer_object = BUFFER(image->buf);
buffer_object = BUFFER(driver_data, image->buf);
if (buffer_object == NULL)
return VA_STATUS_ERROR_INVALID_BUFFER;