drm/ast: Embed CRTC and connector in struct ast_private
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 30 Jul 2020 13:51:58 +0000 (15:51 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 3 Aug 2020 07:03:47 +0000 (09:03 +0200)
commit6a470dc2a12e99608706de030c92732f166d0dc1
tree19bc14a0623a7d94b27c69541d02f556cf12fa7d
parent70eca5d5d3e1a8139df918fe104dc63a37554789
drm/ast: Embed CRTC and connector in struct ast_private

Only single instances of CRTC and connector are supported per
device. Embed both in ast's structure and remove the individual
memory allocations. DRM's CRTC cleanup helpers replace the rsp.
destroy function in ast.

While at it, also convert to_ast_connector() to a function.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200730135206.30239-2-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_mode.c