• Damien Lespiau's avatar
    drm/i915: Introduce a for_each_intel_encoder() macro · b2784e15
    Damien Lespiau authored
    Following the established idom, let's provide a macro to iterate through
    the encoders.
    
    spatch helps, once more, for the substitution:
    
      @@
      iterator name list_for_each_entry;
      iterator name for_each_intel_encoder;
      struct intel_encoder * encoder;
      struct drm_device * dev;
      @@
      -list_for_each_entry(encoder, &dev->mode_config.encoder_list, base.head) {
      +for_each_intel_encoder(dev, encoder) {
        ...
      }
    
    I also modified a few call sites by hand where a pointer to mode_config
    was directly used (to avoid overflowing 80 chars).
    Signed-off-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
    [danvet: Wrap paramters correctly in the macro and remove spurious
    space checkpatch noticed.]
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    b2784e15
intel_hdmi.c 48.8 KB