]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ast: astdp: Replace power_on helpers
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 11 Sep 2024 11:51:21 +0000 (13:51 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 13 Sep 2024 13:41:14 +0000 (15:41 +0200)
commitc0acb5c541931618fbd0923e7d0b3803acf48888
treec2c75145b80072aaf4cc4a7cd01b16b3f55bbc3c
parent2fc2d1adbd273282eecf2343c2a77a6fb228bd97
drm/ast: astdp: Replace power_on helpers

Replace the helper for controlling power on the physical connector,
ast_dp_power_on_off(), with ast_dp_set_phy_sleep(). The new name
reflects the effect of the operation. Simplify the implementation.
The call now controls sleeping, hence semantics are inversed. Each
'on' becomes an 'off' operation and vice versa.

Do the same for ast_dp_power_is_on() and also align naming of the
register constant 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-4-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_dp.c
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_reg.h