diff options
| author | Ville Syrjälä <[email protected]> | 2018-06-28 13:13:09 +0000 |
|---|---|---|
| committer | Ville Syrjälä <[email protected]> | 2018-07-05 13:52:07 +0000 |
| commit | 83aefbb887b59df0b3520965c3701e01deacfc52 (patch) | |
| tree | 2ae00e1b761979767560fd7e989070e27f4137c7 /drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | |
| parent | drm/i915: Nuke intel_mst_best_encoder() (diff) | |
| download | kernel-83aefbb887b59df0b3520965c3701e01deacfc52.tar.gz kernel-83aefbb887b59df0b3520965c3701e01deacfc52.zip | |
drm: Add drm_connector_for_each_possible_encoder()
Add a convenience macro for iterating connector->encoder_ids[].
Isolates the users from the implementation details.
Note that we don't seem to pass the file_priv down to drm_encoder_find()
because encoders apparently don't get leased. No idea why
drm_encoder_finc() even takes the file_priv actually.
Also use ARRAY_SIZE() when populating the array to avoid spreading
knowledge about the array size all over.
v2: Hide the drm_encoder_find() in the macro, and
rename the macro appropriately (Daniel)
v3: Fix kernel docs (Daniel)
Cc: Daniel Vetter <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c')
0 files changed, 0 insertions, 0 deletions
