drm: extract drm_dp_max_lane_count helper