Tag: 8a51d5bef07f1c8c59de20089fb27ea39d395f1b

drm: Reduce the amount of dev->vblank[crtc] in the code

Author: Ville Syrjälä <ville.syrjala@linux.intel.com> Declare a local struct drm_vblank_crtc * and use that instead of having to do dig it out via ‘dev->vblank[crtc]’ everywhere. Performed with the following coccinelle incantation, and a few manual whitespace cleanups: @@ identifier func,member; expression num_crtcs; struct drm_device *dev; unsigned int crtc; @@ func (…) { + struct drm_vblank_crtc *vblank; …

Continue reading