[PATCH 5.15 74/76] serial: max310x: make accessing revision id interface-agnostic