]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ast: astdp: Avoid upcasting to struct ast_device
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 11 Sep 2024 11:51:20 +0000 (13:51 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 13 Sep 2024 13:41:13 +0000 (15:41 +0200)
commit2fc2d1adbd273282eecf2343c2a77a6fb228bd97
tree2d32b0a97f1ca4a18b45bdb00b4beecf0ae3b2b6
parente9c37f7b71ac28d32201f8674bd232081d8b071f
drm/ast: astdp: Avoid upcasting to struct ast_device

Several functions receive an instance of struct drm_device only to
upcast it to struct ast_device. Improve type safety by passing the
AST device directly.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240911115347.899148-3-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_dp.c