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)
commit094aa54f0f9e9185babebf95745d71b07a84321c
tree703408c3e45e4d308edfc4fbce3e33167a976094
parent752c4f3c1d19708578257ecc041672b6d8afb9bf
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