Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/irq: Document return values more consistently

Some of the functions are documented inconsistently. Add Returns:
sections where missing and use consistent style to describe the return
value.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>

authored by

Thierry Reding and committed by
Daniel Vetter
c30e11fc cc1ef118

+5 -2
+5 -2
drivers/gpu/drm/drm_irq.c
··· 1006 1006 * drm_vblank_enable - enable the vblank interrupt on a CRTC 1007 1007 * @dev: DRM device 1008 1008 * @pipe: CRTC index 1009 + * 1010 + * Returns: 1011 + * Zero on success or a negative error code on failure. 1009 1012 */ 1010 1013 static int drm_vblank_enable(struct drm_device *dev, unsigned int pipe) 1011 1014 { ··· 1053 1050 * This is the legacy version of drm_crtc_vblank_get(). 1054 1051 * 1055 1052 * Returns: 1056 - * Zero on success, nonzero on failure. 1053 + * Zero on success or a negative error code on failure. 1057 1054 */ 1058 1055 int drm_vblank_get(struct drm_device *dev, unsigned int pipe) 1059 1056 { ··· 1093 1090 * This is the native kms version of drm_vblank_get(). 1094 1091 * 1095 1092 * Returns: 1096 - * Zero on success, nonzero on failure. 1093 + * Zero on success or a negative error code on failure. 1097 1094 */ 1098 1095 int drm_crtc_vblank_get(struct drm_crtc *crtc) 1099 1096 {