]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ast: astdp: Replace ast_dp_set_on_off()
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 11 Sep 2024 11:51:22 +0000 (13:51 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 13 Sep 2024 13:41:15 +0000 (15:41 +0200)
commit4e29cc7c5c673299cfbaf4982fc8b6a72c9f706f
treed03deef8512b78a893d34da5a7710449f5ee599c
parentc0acb5c541931618fbd0923e7d0b3803acf48888
drm/ast: astdp: Replace ast_dp_set_on_off()

Replace ast_dp_set_on_off() with ast_dp_set_enable(). The helper's
new name reflects the performed operation. If enabling fails, the
new helper prints a warning. The code that waits for the programmed
effect to take place is now located in __ast_dp_wait_enable().

Also align the register constants with the rest of the code.

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