drm/mgag200: Embed instance of struct drm_device in struct mga_device
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 5 Jun 2020 13:58:02 +0000 (15:58 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 11 Jun 2020 08:06:10 +0000 (10:06 +0200)
commit832eddf5d8f4d83983b7674faa009b2a5ead1848
treee16c3df1f7ceb8729a4c6a55698815889c7b97f2
parent3c8923c3f15e1c7f84b804f218500febf46868a3
drm/mgag200: Embed instance of struct drm_device in struct mga_device

Following current best practice, the instance of struct drm_device is now
embedded in struct mga_device. The respective field has been renamed from
'dev' to 'base' to reflect the relationship. Conversion from DRM device is
done via upcast. Using dev_private is no longer possible.

The patch also open-codes drm_dev_alloc() and DRM device initialization
is now performed by a call to drm_device_init().

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200605135803.19811-14-tzimmermann@suse.de
drivers/gpu/drm/mgag200/mgag200_drv.c
drivers/gpu/drm/mgag200/mgag200_drv.h
drivers/gpu/drm/mgag200/mgag200_mm.c
drivers/gpu/drm/mgag200/mgag200_mode.c