mirror of
https://github.com/torvalds/linux
synced 2024-09-23 21:07:52 +00:00
drm: Improve drm_calc_timestamping_constants() documentation
Move the long blurp to into the body of the comment, leaving only a short summary line at the top. Reviewed-by: mario.kleiner.de@gmail.com Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
This commit is contained in:
parent
c326c0a9c9
commit
21b21560e9
|
@ -436,17 +436,16 @@ int drm_control(struct drm_device *dev, void *data,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* drm_calc_timestamping_constants - Calculate and
|
* drm_calc_timestamping_constants - Calculate vblank timestamp constants
|
||||||
* store various constants which are later needed by
|
|
||||||
* vblank and swap-completion timestamping, e.g, by
|
|
||||||
* drm_calc_vbltimestamp_from_scanoutpos().
|
|
||||||
* They are derived from crtc's true scanout timing,
|
|
||||||
* so they take things like panel scaling or other
|
|
||||||
* adjustments into account.
|
|
||||||
*
|
*
|
||||||
* @crtc drm_crtc whose timestamp constants should be updated.
|
* @crtc drm_crtc whose timestamp constants should be updated.
|
||||||
* @mode display mode containing the scanout timings
|
* @mode display mode containing the scanout timings
|
||||||
*
|
*
|
||||||
|
* Calculate and store various constants which are later
|
||||||
|
* needed by vblank and swap-completion timestamping, e.g,
|
||||||
|
* by drm_calc_vbltimestamp_from_scanoutpos(). They are
|
||||||
|
* derived from crtc's true scanout timing, so they take
|
||||||
|
* things like panel scaling or other adjustments into account.
|
||||||
*/
|
*/
|
||||||
void drm_calc_timestamping_constants(struct drm_crtc *crtc,
|
void drm_calc_timestamping_constants(struct drm_crtc *crtc,
|
||||||
const struct drm_display_mode *mode)
|
const struct drm_display_mode *mode)
|
||||||
|
|
Loading…
Reference in a new issue