drm/i915/dp: refactor aux_ch_name()
authorJani Nikula <jani.nikula@intel.com>
Fri, 22 Sep 2023 10:56:45 +0000 (13:56 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 26 Sep 2023 09:35:09 +0000 (12:35 +0300)
commit690391777f4d81a0877c98e0492c245c2aa7b10d
tree0854e3428b0904ac0b9057d4ada80d9d0ba8ae21
parent156adfa55f23620f5817e1cf93dd6f762c8890b4
drm/i915/dp: refactor aux_ch_name()

Convert aux_ch_name() to a helper that prints a string to a caller
provided buffer, and use it to get more consistent aux channel
debugs. Now that all users of aux_ch_name() are in intel_dp_aux.c, we
can make it static too.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230922105645.3991066-1-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_display.h
drivers/gpu/drm/i915/display/intel_dp_aux.c