]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ast: Replace AST_VIDMEM_SIZE_ with Linux SZ_ constants
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 5 Mar 2025 16:30:40 +0000 (17:30 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 12 Mar 2025 07:38:09 +0000 (08:38 +0100)
commit2b7970e9a632b1e45ccf52b620079ab9ea5cad1a
tree82319a466f93d7e5ac98e1b36ce0a30c458feea3
parent27b6bce72c7721449d924ef987aa835daf015f26
drm/ast: Replace AST_VIDMEM_SIZE_ with Linux SZ_ constants

Ast's AST_VIDMEM_SIZE_ constants enumerate supported video-memory
sizes from 8 MiB to 128 MiB. Replace them with Linux' SZ_ constants
of the same value. When expanded, the literal values remain the same.

The size constant for 128 MiB is unused and the default size is not
necessary. Remove both of them.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250305163207.267650-2-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_mm.c
drivers/gpu/drm/ast/ast_post.c