Commit 354a2249 authored by Julia Lawall's avatar Julia Lawall Committed by Ben Skeggs

drm/nouveau/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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 2e69a5cd
...@@ -109,7 +109,7 @@ nv04_disp_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) ...@@ -109,7 +109,7 @@ nv04_disp_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size)
return -EINVAL; return -EINVAL;
} }
static struct nvkm_object_func static const struct nvkm_object_func
nv04_disp_root = { nv04_disp_root = {
.mthd = nv04_disp_mthd, .mthd = nv04_disp_mthd,
.ntfy = nvkm_disp_ntfy, .ntfy = nvkm_disp_ntfy,
......
...@@ -633,7 +633,7 @@ nvkm_perfmon_dtor(struct nvkm_object *object) ...@@ -633,7 +633,7 @@ nvkm_perfmon_dtor(struct nvkm_object *object)
return perfmon; return perfmon;
} }
static struct nvkm_object_func static const struct nvkm_object_func
nvkm_perfmon = { nvkm_perfmon = {
.dtor = nvkm_perfmon_dtor, .dtor = nvkm_perfmon_dtor,
.mthd = nvkm_perfmon_mthd, .mthd = nvkm_perfmon_mthd,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment