Skip to contentSkip to conversation

drm/modes: Fix drm_mode_validate_size() docs

PATCH New Ville Syrjala 1 participant 1 message Feb 3, 2022

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

PATCH 1/1 drm/modes: Fix drm_mode_validate_size() docs

From: Ville Syrjälä <[email protected]>

drm_mode_validate_size() does *not* modify the passed in mode's status (in fact it is passed in as const). Also this operates on a single mode, so the reference to some list is just confusing. Remove the nonsense docs.

---
 drivers/gpu/drm/drm_modes.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/drm_modes.c +2 -4
index 1c72208d8133..425a56a976a1 100644
@@ -1136,16 +1136,14 @@ EXPORT_SYMBOL(drm_mode_validate_driver);
 /**
  * drm_mode_validate_size - make sure modes adhere to size constraints
  * @mode: mode to check
  * @maxX: maximum width
  * @maxY: maximum height
  *
- * This function is a helper which can be used to validate modes against size
- * limitations of the DRM device/connector. If a mode is too big its status
- * member is updated with the appropriate validation failure code. The list
- * itself is not changed.
+ * This function is a helper which can be used to validate
+ * modes against size limitations of the DRM device/connector.
  *
  * Returns:
  * The mode status
  */
 enum drm_mode_status
 drm_mode_validate_size(const struct drm_display_mode *mode,
Signature · 1 line
2.34.1