summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2022-06-01 20:46:26 +1000
committerDave Airlie <airlied@redhat.com>2022-07-27 09:05:45 +1000
commit0407b33fadcd7a5d31ba3c473cef95b2b418d8c4 (patch)
tree4bc4239975d74ecca0787366fb26aa86d99504c1 /drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c
parent412dfcf34e0695fa1714ad422b2a5d0ed1406437 (diff)
drm/nouveau/disp: collapse nv50_disp_func into nvkm_disp_func
Aside from a chicken-and-egg problem with a duplicate 'root' member, this is a straight dump of function pointers from one struct into another. The left-over wrapping mess in >=nv50 structs will be fixed later. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Reviewed-by: Lyude Paul <lyude@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c b/drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c
index 3425b5d3bc72..551615582882 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c
@@ -26,11 +26,16 @@
#include "ior.h"
#include "rootnv50.h"
-static const struct nv50_disp_func
+static const struct nvkm_disp_func
g94_disp = {
- .init = nv50_disp_init,
- .fini = nv50_disp_fini,
- .intr = nv50_disp_intr,
+ .dtor = nv50_disp_dtor_,
+ .oneinit = nv50_disp_oneinit_,
+ .init = nv50_disp_init_,
+ .fini = nv50_disp_fini_,
+ .intr = nv50_disp_intr_,
+ .init_ = nv50_disp_init,
+ .fini_ = nv50_disp_fini,
+ .intr_ = nv50_disp_intr,
.uevent = &nv50_disp_chan_uevent,
.super = nv50_disp_super,
.root = &g94_disp_root_oclass,