gralloc_gbm: fix gralloc_gbm_bo_lock() declaration
The variable names in gralloc_gbm_bo_lock() function declaration don't
match the definition in gralloc_gbm.cpp. Let's fix them to stop the
confusion.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: Ic1734a3e96a57d62cfbb0e3f1bdf8c87fc405f9d
diff --git a/gralloc/gralloc_gbm_priv.h b/gralloc/gralloc_gbm_priv.h
index 7174fb8..d0326c5 100644
--- a/gralloc/gralloc_gbm_priv.h
+++ b/gralloc/gralloc_gbm_priv.h
@@ -43,7 +43,7 @@
buffer_handle_t gralloc_gbm_bo_get_handle(struct gbm_bo *bo);
int gralloc_gbm_get_gem_handle(buffer_handle_t handle);
-int gralloc_gbm_bo_lock(buffer_handle_t handle, int x, int y, int w, int h, int enable_write, void **addr);
+int gralloc_gbm_bo_lock(buffer_handle_t handle, int usage, int x, int y, int w, int h, void **addr);
int gralloc_gbm_bo_unlock(buffer_handle_t handle);
struct gbm_device *gbm_dev_create(void);