From 3090c6eb4143aba5637b74bdf3f3a4affb86ad6c Mon Sep 17 00:00:00 2001 From: Shawn Guo Date: Tue, 9 Jun 2020 09:30:40 +0800 Subject: [PATCH] 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 Signed-off-by: Amit Pundir --- gralloc_gbm_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gralloc_gbm_priv.h b/gralloc_gbm_priv.h index 7174fb8..d0326c5 100644 --- a/gralloc_gbm_priv.h +++ b/gralloc_gbm_priv.h @@ -43,7 +43,7 @@ struct gbm_bo *gralloc_gbm_bo_from_handle(buffer_handle_t handle); 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); -- 2.11.0