summaryrefslogtreecommitdiff
path: root/rockchip.c
diff options
context:
space:
mode:
authorGurchetan Singh <gurchetansingh@chromium.org>2017-10-31 10:36:25 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-11-08 15:10:09 -0800
commit3e9d3830dce97cb0146b9f6e0f4942253f39ca69 (patch)
tree1a4bb493e39839e13d27136452ac3c42c5c1a33b /rockchip.c
parenta29bf678db525bf0e11105f9f660fbb4e062750d (diff)
minigbm: re-const-ify driver backends
minigbm driver creation needs to be re-entrant (see CL:674528). Let's re-constify to make this behavior explicit. BUG=none TEST=emerge-eve {minigbm, arc-cros-gralloc} Change-Id: I037966199d4aa6de60432127e10fea1fb602694b Reviewed-on: https://chromium-review.googlesource.com/758142 Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org> Tested-by: Gurchetan Singh <gurchetansingh@chromium.org> Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Diffstat (limited to 'rockchip.c')
-rw-r--r--rockchip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rockchip.c b/rockchip.c
index 5fb0be4..2678f77 100644
--- a/rockchip.c
+++ b/rockchip.c
@@ -314,7 +314,7 @@ static uint32_t rockchip_resolve_format(uint32_t format, uint64_t use_flags)
}
}
-struct backend backend_rockchip = {
+const struct backend backend_rockchip = {
.name = "rockchip",
.init = rockchip_init,
.bo_create = rockchip_bo_create,