disp: msm: dp: renaming DP_TEST_PHY_PATTERN

Commit 4342f839ae7e ("drm/dp: get/set phy compliance pattern")
swaps TEST_PHY with PHY_TEST in drm_dp_helper header file. This
changes updates the relevant changes in the dp driver.

Change-Id: I5c24a100022277388af530c526f169a03c6df889
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
Signed-off-by: Rajkumar Subbiah <rsubbia@codeaurora.org>
This commit is contained in:
Samantha Tran
2020-09-17 10:02:25 -07:00
committed by Nilaan Gunabalachandran
parent 6fa94ff382
commit b5784e4724
4 changed files with 40 additions and 41 deletions

View File

@@ -12,6 +12,9 @@
#define DP_TEST_BIT_DEPTH_UNKNOWN 0xFFFFFFFF
#define DP_LINK_ENUM_STR(x) #x
#define DP_PHY_TEST_PATTERN_CP2520_2 0x6
#define DP_PHY_TEST_PATTERN_CP2520_3 0x7
enum dp_link_voltage_level {
DP_LINK_VOLTAGE_LEVEL_0,
DP_LINK_VOLTAGE_LEVEL_1,
@@ -127,25 +130,25 @@ struct dp_link {
static inline char *dp_link_get_phy_test_pattern(u32 phy_test_pattern_sel)
{
switch (phy_test_pattern_sel) {
case DP_TEST_PHY_PATTERN_NONE:
return DP_LINK_ENUM_STR(DP_TEST_PHY_PATTERN_NONE);
case DP_TEST_PHY_PATTERN_D10_2_NO_SCRAMBLING:
case DP_PHY_TEST_PATTERN_NONE:
return DP_LINK_ENUM_STR(DP_PHY_TEST_PATTERN_NONE);
case DP_PHY_TEST_PATTERN_D10_2:
return DP_LINK_ENUM_STR(
DP_TEST_PHY_PATTERN_D10_2_NO_SCRAMBLING);
case DP_TEST_PHY_PATTERN_SYMBOL_ERR_MEASUREMENT_CNT:
DP_PHY_TEST_PATTERN_D10_2);
case DP_PHY_TEST_PATTERN_ERROR_COUNT:
return DP_LINK_ENUM_STR(
DP_TEST_PHY_PATTERN_SYMBOL_ERR_MEASUREMENT_CNT);
case DP_TEST_PHY_PATTERN_PRBS7:
return DP_LINK_ENUM_STR(DP_TEST_PHY_PATTERN_PRBS7);
case DP_TEST_PHY_PATTERN_80_BIT_CUSTOM_PATTERN:
DP_PHY_TEST_PATTERN_ERROR_COUNT);
case DP_PHY_TEST_PATTERN_PRBS7:
return DP_LINK_ENUM_STR(DP_PHY_TEST_PATTERN_PRBS7);
case DP_PHY_TEST_PATTERN_80BIT_CUSTOM:
return DP_LINK_ENUM_STR(
DP_TEST_PHY_PATTERN_80_BIT_CUSTOM_PATTERN);
case DP_TEST_PHY_PATTERN_CP2520_PATTERN_1:
return DP_LINK_ENUM_STR(DP_TEST_PHY_PATTERN_CP2520_PATTERN_1);
case DP_TEST_PHY_PATTERN_CP2520_PATTERN_2:
return DP_LINK_ENUM_STR(DP_TEST_PHY_PATTERN_CP2520_PATTERN_2);
case DP_TEST_PHY_PATTERN_CP2520_PATTERN_3:
return DP_LINK_ENUM_STR(DP_TEST_PHY_PATTERN_CP2520_PATTERN_3);
DP_PHY_TEST_PATTERN_80BIT_CUSTOM);
case DP_PHY_TEST_PATTERN_CP2520:
return DP_LINK_ENUM_STR(DP_PHY_TEST_PATTERN_CP2520);
case DP_PHY_TEST_PATTERN_CP2520_2:
return DP_LINK_ENUM_STR(DP_PHY_TEST_PATTERN_CP2520_2);
case DP_PHY_TEST_PATTERN_CP2520_3:
return DP_LINK_ENUM_STR(DP_PHY_TEST_PATTERN_CP2520_3);
default:
return "unknown";
}