]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mgag200: Convert struct drm_device to struct mga_device with helper
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 7 May 2020 09:03:10 +0000 (11:03 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 11 May 2020 14:39:45 +0000 (16:39 +0200)
commitc9dcd8a62c3838ca0ee72badf150ff06d85f458f
treecc1dfeea35e6fc2d4ab77a7bfc972764866eea41
parent602f8cc1def5717c3c04f028d4bcdbf6d3146455
drm/mgag200: Convert struct drm_device to struct mga_device with helper

Mgag200 uses dev_private to look up struct mga_device for instances
of struct drm_device. Use of dev_private is deprecated, so hide it in
the helper function to_mga_device().

v2:
* make to_mga_device() a function (Sam)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200507090315.21274-2-tzimmermann@suse.de
drivers/gpu/drm/mgag200/mgag200_cursor.c
drivers/gpu/drm/mgag200/mgag200_drv.c
drivers/gpu/drm/mgag200/mgag200_drv.h
drivers/gpu/drm/mgag200/mgag200_i2c.c
drivers/gpu/drm/mgag200/mgag200_main.c
drivers/gpu/drm/mgag200/mgag200_mode.c