]> git.baikalelectronics.ru Git - kernel.git/commit
drm/gm12u320: Don't use drm_device->dev_private
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 15 Apr 2020 07:39:57 +0000 (09:39 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 28 Apr 2020 13:55:19 +0000 (15:55 +0200)
commitd356128ddc1dfda61e08d9fceb0a621fd12a6e9e
tree6e3993f266521cea47898a74fa00af0bfcf6b297
parent760c2422e0541543473ff018b745fe485510cc7d
drm/gm12u320: Don't use drm_device->dev_private

Upcasting using a container_of macro is more typesafe, faster and
easier for the compiler to optimize.

Acked-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200415074034.175360-23-daniel.vetter@ffwll.ch
drivers/gpu/drm/tiny/gm12u320.c