diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-01-23 20:05:00 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-13 12:48:44 +0100 |
commit | f5aabb978d1dcd850d329bcce6dc782bb8621984 (patch) | |
tree | 94477e3697edd25f191bac6c4efdea1f849e4919 /include/drm | |
parent | 3e70292cd4a002cd799a1cd4115286cba3933d6d (diff) | |
download | op-kernel-dev-f5aabb978d1dcd850d329bcce6dc782bb8621984.zip op-kernel-dev-f5aabb978d1dcd850d329bcce6dc782bb8621984.tar.gz |
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.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/drm/drm_modes.h b/include/drm/drm_modes.h index b3507f1..995c34d 100644 --- a/include/drm/drm_modes.h +++ b/include/drm/drm_modes.h @@ -162,6 +162,14 @@ struct drm_cmdline_mode { enum drm_connector_force force; }; +/** + * drm_mode_is_stereo - check for stereo mode flags + * @mode: drm_display_mode to check + * + * Returns: + * True if the mode is one of the stereo modes (like side-by-side), false if + * not. + */ static inline bool drm_mode_is_stereo(const struct drm_display_mode *mode) { return mode->flags & DRM_MODE_FLAG_3D_MASK; |