gallium: annotate drm_driver_descriptor instance as const data
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 11 Oct 2016 18:39:26 +0000 (19:39 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 14 Oct 2016 10:09:00 +0000 (11:09 +0100)
Already treated and handled as such.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/include/state_tracker/drm_driver.h

index deccfb5a17db717cdb995ee6ac44968557187791..c80fb09dbc46fc759a59c14037579458674bde06 100644 (file)
@@ -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),                                   \