[RFC 1/6] drm/msm/dsi: add two helper functions