Skip to content

Commit b2feb1d

Browse files
committed
drm/dp_mst: Rename drm_dp_mst_is_dp_mst_end_device() to be less redundant
It's already prefixed by dp_mst, so we don't really need to repeat ourselves here. One of the changes I should have picked up originally when reviewing MST DSC support. There should be no functional changes here Cc: Mikita Lipski <[email protected]> Cc: Sean Paul <[email protected]> Cc: Hans de Goede <[email protected]> Signed-off-by: Lyude Paul <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Tested-by: Hans de Goede <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent e3c3b6e commit b2feb1d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/gpu/drm/drm_dp_mst_topology.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,7 +1935,7 @@ static u8 drm_dp_calculate_rad(struct drm_dp_mst_port *port,
19351935
return parent_lct + 1;
19361936
}
19371937

1938-
static bool drm_dp_mst_is_dp_mst_end_device(u8 pdt, bool mcs)
1938+
static bool drm_dp_mst_is_end_device(u8 pdt, bool mcs)
19391939
{
19401940
switch (pdt) {
19411941
case DP_PEER_DEVICE_DP_LEGACY_CONV:
@@ -1965,13 +1965,13 @@ drm_dp_port_set_pdt(struct drm_dp_mst_port *port, u8 new_pdt,
19651965

19661966
/* Teardown the old pdt, if there is one */
19671967
if (port->pdt != DP_PEER_DEVICE_NONE) {
1968-
if (drm_dp_mst_is_dp_mst_end_device(port->pdt, port->mcs)) {
1968+
if (drm_dp_mst_is_end_device(port->pdt, port->mcs)) {
19691969
/*
19701970
* If the new PDT would also have an i2c bus,
19711971
* don't bother with reregistering it
19721972
*/
19731973
if (new_pdt != DP_PEER_DEVICE_NONE &&
1974-
drm_dp_mst_is_dp_mst_end_device(new_pdt, new_mcs)) {
1974+
drm_dp_mst_is_end_device(new_pdt, new_mcs)) {
19751975
port->pdt = new_pdt;
19761976
port->mcs = new_mcs;
19771977
return 0;
@@ -1991,7 +1991,7 @@ drm_dp_port_set_pdt(struct drm_dp_mst_port *port, u8 new_pdt,
19911991
port->mcs = new_mcs;
19921992

19931993
if (port->pdt != DP_PEER_DEVICE_NONE) {
1994-
if (drm_dp_mst_is_dp_mst_end_device(port->pdt, port->mcs)) {
1994+
if (drm_dp_mst_is_end_device(port->pdt, port->mcs)) {
19951995
/* add i2c over sideband */
19961996
ret = drm_dp_mst_register_i2c_bus(&port->aux);
19971997
} else {
@@ -2172,7 +2172,7 @@ drm_dp_mst_port_add_connector(struct drm_dp_mst_branch *mstb,
21722172
}
21732173

21742174
if (port->pdt != DP_PEER_DEVICE_NONE &&
2175-
drm_dp_mst_is_dp_mst_end_device(port->pdt, port->mcs)) {
2175+
drm_dp_mst_is_end_device(port->pdt, port->mcs)) {
21762176
port->cached_edid = drm_get_edid(port->connector,
21772177
&port->aux.ddc);
21782178
drm_connector_set_tile_property(port->connector);

0 commit comments

Comments
 (0)