[RFCv3 11/14] drm: convert crtc to properties/state

2013-11-21 Thread Maarten Lankhorst
op 20-11-13 21:48, Rob Clark schreef: > +int drm_modeset_lock_crtc(struct drm_crtc *crtc, void *state) > +{ > + // ugg, this makes atomic_helper mandatory.. not really > + // sure yet whether I should care, or just simplify things > + // and require that drivers use or extend atomic_he

[RFCv3 11/14] drm: convert crtc to properties/state

2013-11-20 Thread Rob Clark
Break the mutable state of a crtc out into a separate structure and use atomic properties mechanism to set crtc attributes. This makes it easier to have some helpers for crtc->set_property() and for checking for invalid params. The idea is that individual drivers can wrap the state struct in thei