[th/ports-cleanup]
there were some cleanup patches that fell out during !1131 (merged).
the last one ("core/device: expose CList for device's port-info in header") is possibly a bit controversial and could be dropped. The others, I think are clear improvements(?).