summaryrefslogtreecommitdiffstats
path: root/src/gallium/include/state_tracker
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2016-10-11 19:39:26 +0100
committerEmil Velikov <[email protected]>2016-10-14 11:09:00 +0100
commit792148f16a70e3aa62b9f2c9f9dc95db6487cca5 (patch)
tree0c7b994773187de4950537a20b29adafcfc0468b /src/gallium/include/state_tracker
parentc079a206ad9b48919d2649e6ca4747d3a067987e (diff)
gallium: annotate drm_driver_descriptor instance as const data
Already treated and handled as such. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/include/state_tracker')
-rw-r--r--src/gallium/include/state_tracker/drm_driver.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/include/state_tracker/drm_driver.h b/src/gallium/include/state_tracker/drm_driver.h
index deccfb5a17d..c80fb09dbc4 100644
--- a/src/gallium/include/state_tracker/drm_driver.h
+++ b/src/gallium/include/state_tracker/drm_driver.h
@@ -108,13 +108,13 @@ struct drm_driver_descriptor
const struct drm_conf_ret *(*configuration) (enum drm_conf conf);
};
-extern struct drm_driver_descriptor driver_descriptor;
+extern const struct drm_driver_descriptor driver_descriptor;
/**
* Instantiate a drm_driver_descriptor struct.
*/
#define DRM_DRIVER_DESCRIPTOR(driver_name_str, func, conf) \
-struct drm_driver_descriptor driver_descriptor = { \
+const struct drm_driver_descriptor driver_descriptor = { \
.driver_name = driver_name_str, \
.create_screen = func, \
.configuration = (conf), \