]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Some ocd in drm_file.c
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 2 May 2019 13:56:03 +0000 (15:56 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 9 May 2019 09:40:20 +0000 (11:40 +0200)
commite8e87dfc2ba8185636b1bdb8c7c11517218cee1b
tree703408c3e45e4d308edfc4fbce3e33167a976094
parentb0705cd40b3dc9f31d2f2d9e9028bedb4c2d9115
drm: Some ocd in drm_file.c

Move the open helper around to avoid the forward decl, and give
drm_setup a drm_legacy_ prefix since it's all legacy stuff in there.

v2: Move drm_legacy_setup into drm_legacy_misc.c (Chris). The
counterpart in the form of drm_legacy_dev_reinit is there already too,
plus it fits perfectly into Dave's work of making DRIVER_LEGACY code
compile-time optional.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190502135603.20413-1-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_file.c
drivers/gpu/drm/drm_legacy.h
drivers/gpu/drm/drm_legacy_misc.c