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