pipe-loader: annotate the ops as const data
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 14 Oct 2015 20:35:50 +0000 (21:35 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 21 Nov 2015 12:52:19 +0000 (12:52 +0000)
Already defined as such in struct pipe_loader_device::ops.

Cc: Tom Stellard <thomas.stellard@amd.com>
Cc: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Rob Clark <robclark@freedesktop.org>
src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c

index 3b858e7425ca1ade1bbec5494460ed45cba6ddc4..d4cb317447af8c65b74da42fdda5f37ed21fce09 100644 (file)
@@ -56,7 +56,7 @@ struct pipe_loader_drm_device {
 
 #define pipe_loader_drm_device(dev) ((struct pipe_loader_drm_device *)dev)
 
-static struct pipe_loader_ops pipe_loader_drm_ops;
+static const struct pipe_loader_ops pipe_loader_drm_ops;
 
 bool
 pipe_loader_drm_probe_fd(struct pipe_loader_device **dev, int fd)
@@ -185,7 +185,7 @@ pipe_loader_drm_create_screen(struct pipe_loader_device *dev)
    return dd->create_screen(ddev->fd);
 }
 
-static struct pipe_loader_ops pipe_loader_drm_ops = {
+static const struct pipe_loader_ops pipe_loader_drm_ops = {
    .create_screen = pipe_loader_drm_create_screen,
    .configuration = pipe_loader_drm_configuration,
    .release = pipe_loader_drm_release
index 85e06d312edf2b4118c9bbba9928f2ae3ea0ab8a..3db53e199e95605e2577eef39ab391b942f7210d 100644 (file)
@@ -46,7 +46,7 @@ struct pipe_loader_sw_device {
 
 #define pipe_loader_sw_device(dev) ((struct pipe_loader_sw_device *)dev)
 
-static struct pipe_loader_ops pipe_loader_sw_ops;
+static const struct pipe_loader_ops pipe_loader_sw_ops;
 
 static bool
 pipe_loader_sw_probe_init_common(struct pipe_loader_sw_device *sdev)
@@ -249,7 +249,7 @@ pipe_loader_sw_create_screen(struct pipe_loader_device *dev)
    return screen;
 }
 
-static struct pipe_loader_ops pipe_loader_sw_ops = {
+static const struct pipe_loader_ops pipe_loader_sw_ops = {
    .create_screen = pipe_loader_sw_create_screen,
    .configuration = pipe_loader_sw_configuration,
    .release = pipe_loader_sw_release