diff options
author | Danilo Krummrich <dakr@redhat.com> | 2023-10-02 15:46:46 +0200 |
---|---|---|
committer | Danilo Krummrich <dakr@redhat.com> | 2023-10-04 00:09:54 +0200 |
commit | 152be54224de182730cf4ee2fe073391623c97f9 (patch) | |
tree | e7126db794e434e241a7889c2b477d7e443093e6 | |
parent | drm: panel-orientation-quirks: Add quirk for One Mix 2S (diff) | |
download | linux-152be54224de182730cf4ee2fe073391623c97f9.tar.xz linux-152be54224de182730cf4ee2fe073391623c97f9.zip |
drm/nouveau: chan: use struct nvif_mclass
Use actual struct nvif_mclass instead of identical anonymous struct.
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231002135008.10651-1-dakr@redhat.com
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_chan.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_chan.c b/drivers/gpu/drm/nouveau/nouveau_chan.c index bb3d6e5c122f..f44d19a50d39 100644 --- a/drivers/gpu/drm/nouveau/nouveau_chan.c +++ b/drivers/gpu/drm/nouveau/nouveau_chan.c @@ -257,10 +257,7 @@ static int nouveau_channel_ctor(struct nouveau_drm *drm, struct nvif_device *device, bool priv, u64 runm, struct nouveau_channel **pchan) { - static const struct { - s32 oclass; - int version; - } hosts[] = { + const struct nvif_mclass hosts[] = { { AMPERE_CHANNEL_GPFIFO_B, 0 }, { AMPERE_CHANNEL_GPFIFO_A, 0 }, { TURING_CHANNEL_GPFIFO_A, 0 }, |