diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-10-11 14:18:09 +0200 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-10-12 13:08:20 +1000 |
commit | a4bbdf2e69f3241cc44b4ee9ac69b535c19eef8f (patch) | |
tree | a98cc469724465893f8df175f5481687c077225d | |
parent | c94824b7140ccb6a38939ae62de7ded679ef021a (diff) | |
download | nouveau-a4bbdf2e69f3241cc44b4ee9ac69b535c19eef8f.tar.gz |
disp,pm: constify nvkm_object_func structures
These nvkm_object_func structures are never modified. All other
nvkm_object_func structures are declared as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drm/nouveau/nvkm/engine/disp/rootnv04.c | 2 | ||||
-rw-r--r-- | drm/nouveau/nvkm/engine/pm/base.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drm/nouveau/nvkm/engine/disp/rootnv04.c b/drm/nouveau/nvkm/engine/disp/rootnv04.c index 62d3fb66d..2be846374 100644 --- a/drm/nouveau/nvkm/engine/disp/rootnv04.c +++ b/drm/nouveau/nvkm/engine/disp/rootnv04.c @@ -109,7 +109,7 @@ nv04_disp_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) return -EINVAL; } -static struct nvkm_object_func +static const struct nvkm_object_func nv04_disp_root = { .mthd = nv04_disp_mthd, .ntfy = nvkm_disp_ntfy, diff --git a/drm/nouveau/nvkm/engine/pm/base.c b/drm/nouveau/nvkm/engine/pm/base.c index 0db9be202..2721592d3 100644 --- a/drm/nouveau/nvkm/engine/pm/base.c +++ b/drm/nouveau/nvkm/engine/pm/base.c @@ -633,7 +633,7 @@ nvkm_perfmon_dtor(struct nvkm_object *object) return perfmon; } -static struct nvkm_object_func +static const struct nvkm_object_func nvkm_perfmon = { .dtor = nvkm_perfmon_dtor, .mthd = nvkm_perfmon_mthd, |