drm_helper_connector_dpms — connector dpms helper implementation
int drm_helper_connector_dpms ( | struct drm_connector * connector, |
int mode) ; |
The drm_helper_connector_dpms
helper function implements the ->dpms
callback of struct drm_connector_funcs for drivers using the legacy CRTC helpers.
This is the main helper function provided by the CRTC helper framework for
implementing the DPMS connector attribute. It computes the new desired DPMS
state for all encoders and CRTCs in the output mesh and calls the ->dpms
callbacks provided by the driver in struct drm_crtc_helper_funcs and struct
drm_encoder_helper_funcs appropriately.
This function is deprecated. New drivers must implement atomic modeset
support, for which this function is unsuitable. Instead drivers should use
drm_atomic_helper_connector_dpms
.