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