Re: [PATCH v3 03/37] drm/nouveau: replace drm_device* with nouveau_drm* as dev drvdata

2024-09-29 Thread Zhi Wang
On Fri, 26 Jul 2024 14:37:54 +1000 Ben Skeggs wrote: > We almost always want to cast the pointer from dev_get_drvdata() to > 'struct nouveau_drm *', so just directly store that pointer instead, > simplifying callers, and fixing some clumsy naming of dev/drm_dev > variables at the same time. > >

[PATCH v3 03/37] drm/nouveau: replace drm_device* with nouveau_drm* as dev drvdata

2024-07-25 Thread Ben Skeggs
We almost always want to cast the pointer from dev_get_drvdata() to 'struct nouveau_drm *', so just directly store that pointer instead, simplifying callers, and fixing some clumsy naming of dev/drm_dev variables at the same time. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/dispnv50/di