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