Introduce helper function to check if the pixel clock is within tolerance. Signed-off-by: Sean Nyekjaer <sean@xxxxxxxxxx> --- Changes in v2: - Introduce helper function drm_mode_validate_mode() - drm/stm: use helper function for mode validation - drm/sun4i: use helper function for mode validation - Link to v1: https://lore.kernel.org/r/20240322104732.2327060-1-sean@xxxxxxxxxx --- Sean Nyekjaer (3): drm/modes: introduce drm_mode_validate_mode() helper function drm/sun4i: use drm_mode_validate_mode() helper function drm/stm: dsi: use drm_mode_validate_mode() helper function drivers/gpu/drm/drm_modes.c | 34 ++++++++++++++++++++++++++++++++++ drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 12 +++++------- drivers/gpu/drm/sun4i/sun4i_rgb.c | 22 ++++------------------ include/drm/drm_modes.h | 2 ++ 4 files changed, 45 insertions(+), 25 deletions(-) --- base-commit: 28eb75e178d389d325f1666e422bc13bbbb9804c change-id: 20241125-dsi-relax-1414baf6cd74 Best regards, -- Sean Nyekjaer <sean@xxxxxxxxxx>