summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-01-23 14:05:00 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-13 07:48:44 -0400
commitf5aabb978d1dcd850d329bcce6dc782bb8621984 (patch)
tree94477e3697edd25f191bac6c4efdea1f849e4919 /include/drm
parent3e70292cd4a002cd799a1cd4115286cba3933d6d (diff)
drm: polish function kerneldoc for drm_modes.[hc]
- Tune down yelling RETURNS. - OCD align all the parameters the same. - Add missing kerneldoc, which also means that we need to include the kerneldoc from the drm_modes.h header now. - Add missing Returns: sections. - General polish and clarification - especially the kerneldoc for the mode creation helpers seems to have been some good specimen of copypasta gone wrong. All actual code changes have all been extracted into prep patches since there was simply too much to polish. v2: More polish for the command line modeline functions. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_modes.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/drm/drm_modes.h b/include/drm/drm_modes.h
index b3507f15d010..995c34d91ef1 100644
--- a/include/drm/drm_modes.h
+++ b/include/drm/drm_modes.h
@@ -162,6 +162,14 @@ struct drm_cmdline_mode {
162 enum drm_connector_force force; 162 enum drm_connector_force force;
163}; 163};
164 164
165/**
166 * drm_mode_is_stereo - check for stereo mode flags
167 * @mode: drm_display_mode to check
168 *
169 * Returns:
170 * True if the mode is one of the stereo modes (like side-by-side), false if
171 * not.
172 */
165static inline bool drm_mode_is_stereo(const struct drm_display_mode *mode) 173static inline bool drm_mode_is_stereo(const struct drm_display_mode *mode)
166{ 174{
167 return mode->flags & DRM_MODE_FLAG_3D_MASK; 175 return mode->flags & DRM_MODE_FLAG_3D_MASK;