• D
    drm/i915: Introduce a for_each_intel_encoder() macro · b2784e15
    Damien Lespiau 提交于
    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: NDamien Lespiau <damien.lespiau@intel.com>
    [danvet: Wrap paramters correctly in the macro and remove spurious
    space checkpatch noticed.]
    Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
    b2784e15
intel_display.c 370.8 KB