[PATCH v4 3/3] drm/msm/dsi: replace version checks with helper functions