[PATCH v1 2/7] drm/msm/dsi: add two helper functions