Skip to content

Commit 85af23d

Browse files
Prashant Malanigregkh
authored andcommitted
usb: typec: altmodes/displayport: Use proper macro for pin assignment check
While looking at the DP configuration VDO to determine the peripheral configuration, the spec (Table 8-5: DisplayPort Configurations, VESA DisplayPort Alt Mode Standard v2.0) lists the options as "UFP_U as a DP Source/Sink Device". So, use the correct macro while performing this check. Effectively it's the same as the existing code, but the proposed macro describes the state a little better. No functional changes introduced. Cc: Heikki Krogerus <[email protected]> Signed-off-by: Prashant Malani <[email protected]> Reviewed-by: Benson Leung <[email protected]> Reviewed-by: Heikki Krogerus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 9682b41 commit 85af23d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/typec/altmodes/displayport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ static const char * const pin_assignments[] = {
425425
*/
426426
static u8 get_current_pin_assignments(struct dp_altmode *dp)
427427
{
428-
if (DP_CONF_CURRENTLY(dp->data.conf) == DP_CONF_DFP_D)
428+
if (DP_CONF_CURRENTLY(dp->data.conf) == DP_CONF_UFP_U_AS_DFP_D)
429429
return DP_CAP_PIN_ASSIGN_DFP_D(dp->alt->vdo);
430430
else
431431
return DP_CAP_PIN_ASSIGN_UFP_D(dp->alt->vdo);

0 commit comments

Comments
 (0)