[PATCH v2 2/3] drm/msm: Split out get_freq() helper