]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ast: Remove vaddr field from struct ast_plane
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 24 Mar 2025 09:44:10 +0000 (10:44 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 7 Apr 2025 13:08:48 +0000 (15:08 +0200)
commit23fd03aa6c08fbf1ba0644aae8c30b6166fe39e8
tree5f7feb36b51f1a97f03fc418b92f30b37a2ac677
parent7cce65f3789e04c0f7668a66563e680d81d54493
drm/ast: Remove vaddr field from struct ast_plane

The vaddr field in struct ast_plane serves no purpose. Its value
can be calculated easily from the VRAM base plus the plane offset.
Do so and remove the field.

In ast_primary_plane_helper_get_scanout_buffer(), remove the test
for vaddr being NULL. This cannot legally happen.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://lore.kernel.org/r/20250324094520.192974-3-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_cursor.c
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_mode.c