Commit 2c659222 authored by Alex Hung's avatar Alex Hung Committed by Alex Deucher
Browse files

drm/amd/display: Update function name to link_detect_connection_type_analog



[WHAT]
Update function "link_detect_analog" to a more accurate name
"link_detect_connection_type_analog".

Suggested-by: default avatarWenjing Liu <wenjing.liu@amd.com>
Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Hung <alex.hung@amd.com>
Signed-off-by: default avatarChenyu Chen <chen-yu.chen@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a8936060
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1365,7 +1365,7 @@ static bool detect_link_and_local_sink(struct dc_link *link,
}

/**
 * link_detect_analog() - Determines if an analog sink is connected.
 * link_detect_connection_type_analog() - Determines if an analog sink is connected.
 *
 * @link: DC link to evaluate (must support analog signalling).
 * @type: Updated with the detected connection type:
@@ -1375,7 +1375,7 @@ static bool detect_link_and_local_sink(struct dc_link *link,
 *
 * Return: true if detection completed.
 */
static bool link_detect_analog(struct dc_link *link, enum dc_connection_type *type)
static bool link_detect_connection_type_analog(struct dc_link *link, enum dc_connection_type *type)
{
	/* Don't care about connectors that don't support an analog signal. */
	ASSERT(dc_connector_supports_analog(link->link_id.id));
@@ -1417,7 +1417,7 @@ bool link_detect_connection_type(struct dc_link *link, enum dc_connection_type *
	 *   (So it's high even when no display is connected.)
	 */
	if (dc_connector_supports_analog(link->link_id.id))
		return link_detect_analog(link, type);
		return link_detect_connection_type_analog(link, type);

	if (link->connector_signal == SIGNAL_TYPE_EDP) {
		/*in case it is not on*/