Ville Syrjälä 83aefbb887 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 <daniel.vetter@ffwll.ch>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180628131315.14156-4-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2018-07-05 16:52:07 +03:00
..
2018-04-25 09:09:22 +02:00
2018-06-22 12:58:08 +10:00
2018-06-28 13:29:07 +10:00
2018-07-02 18:45:56 +03:00
2018-06-07 14:06:31 -07:00
2018-06-22 12:58:08 +10:00
2018-07-04 17:44:10 +02:00
2018-06-28 13:29:07 +10:00
2018-06-20 15:59:34 +02:00
2018-06-22 12:58:08 +10:00
2018-07-02 18:45:55 +03:00
2018-06-06 08:16:33 -07:00
2018-06-20 16:58:31 +10:00
2018-06-28 13:29:07 +10:00
2018-06-22 12:58:08 +10:00
2018-07-02 18:45:55 +03:00
2018-06-15 23:31:07 +03:00
2018-05-03 21:26:32 +02:00
2018-07-05 09:45:56 -03:00