Skip to contentSkip to conversation

drm/modes: Fix outdated drm_mode_vrefresh return value documentation

PATCH New Jonathan Liu 1 participant 1 message Nov 20, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/modes: Fix outdated drm_mode_vrefresh return value documentation

The vrefresh field in drm_display_mode struct was removed so the function no longer checks if it is set before calculating it.

Fixes 0425662fdf05 ("drm: Nuke mode->vrefresh")
---
 drivers/gpu/drm/drm_modes.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/drm_modes.c +1 -2
index 3c8034a8c27b..2d51ab2734a0 100644
@@ -803,8 +803,7 @@ EXPORT_SYMBOL(drm_mode_set_name);
  * @mode: mode
  *
  * Returns:
- * @modes's vrefresh rate in Hz, rounded to the nearest integer. Calculates the
- * value first if it is not yet set.
+ * @modes's vrefresh rate in Hz, rounded to the nearest integer.
  */
 int drm_mode_vrefresh(const struct drm_display_mode *mode)
 {
Signature · 1 line
2.38.1