drm/dp_mst: Combine redundant cases in drm_dp_encode_sideband_req()
authorLyude Paul <lyude@redhat.com>
Tue, 3 Sep 2019 21:57:02 +0000 (17:57 -0400)
committerLyude Paul <lyude@redhat.com>
Tue, 3 Sep 2019 23:29:35 +0000 (19:29 -0400)
commitaa2a2fe1383fff13d2822ff9fce4013eacf2a0cb
tree13cb285a3d7732c7226594eff7793ffa57cb2a8d
parent0de54fb2d02b1f1d604db57b12341c53f07cbaf4
drm/dp_mst: Combine redundant cases in drm_dp_encode_sideband_req()

Noticed this while working on adding a drm_dp_decode_sideband_req().
DP_POWER_DOWN_PHY/DP_POWER_UP_PHY both use the same struct as
DP_ENUM_PATH_RESOURCES, so we can just combine their cases.

Changes since v2:
* Fix commit message

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Juston Li <juston.li@intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Harry Wentland <hwentlan@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190903215702.16984-1-lyude@redhat.com
drivers/gpu/drm/drm_dp_mst_topology.c