Skip to content

Commit 152be54

Browse files
committed
drm/nouveau: chan: use struct nvif_mclass
Use actual struct nvif_mclass instead of identical anonymous struct. Reviewed-by: Dave Airlie <[email protected]> Reviewed-by: Lyude Paul <[email protected]> Signed-off-by: Danilo Krummrich <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent cbb7eb2 commit 152be54

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/gpu/drm/nouveau/nouveau_chan.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,7 @@ static int
257257
nouveau_channel_ctor(struct nouveau_drm *drm, struct nvif_device *device, bool priv, u64 runm,
258258
struct nouveau_channel **pchan)
259259
{
260-
static const struct {
261-
s32 oclass;
262-
int version;
263-
} hosts[] = {
260+
const struct nvif_mclass hosts[] = {
264261
{ AMPERE_CHANNEL_GPFIFO_B, 0 },
265262
{ AMPERE_CHANNEL_GPFIFO_A, 0 },
266263
{ TURING_CHANNEL_GPFIFO_A, 0 },

0 commit comments

Comments
 (0)