diff options
author | David Francis <David.Francis@amd.com> | 2019-07-25 11:47:46 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-01-09 18:07:46 -0500 |
commit | b1dee9a716b532566570052686144bfbba62aaf6 (patch) | |
tree | 66c6c8efb9c228b5fa4a634ac5d8852db52ba06c /include/drm/drm_dp_mst_helper.h | |
parent | 2f221a5efed4cb369dc53cbbae3ba03fcf2ede49 (diff) | |
download | linux-b1dee9a716b532566570052686144bfbba62aaf6.tar.bz2 |
drm/dp_mst: Fill branch->num_ports
This field on drm_dp_mst_branch was never filled
It is initialized to zero when the port is kzallocced.
When a port is added to the list, increment num_ports,
and when a port is removed from the list, decrement num_ports.
v2: remember to decrement on port removal
v3: don't explicitly init to 0
v4: move decrement of num_ports to unlink_port function
Reviewed-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: David Francis <David.Francis@amd.com>
Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/drm/drm_dp_mst_helper.h')
0 files changed, 0 insertions, 0 deletions