OSDN Git Service

drm/ast: Move VRAM size detection to ast_mm.c
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 16 Jul 2020 12:53:51 +0000 (14:53 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 20 Jul 2020 07:16:11 +0000 (09:16 +0200)
commit0149e7805b3c52753d727a7c519757a77435967b
tree83d1b10c301359b1c240b29b6efd4a2c9cc35770
parent8e46dc585389fedd1563698214b2153825789e1e
drm/ast: Move VRAM size detection to ast_mm.c

VRAM size detection is only relevant to the memory management. Move
the code into ast_mm.c.

While at it, rename the function to ast_get_vram_size(). The function
argument's type is now struct ast_private. The result is stored in a
local variable and not in struct ast_private any longer.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200716125353.31512-5-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_main.c
drivers/gpu/drm/ast/ast_mm.c