[PATCH 5.4 48/51] serial: max310x: make accessing revision id interface-agnostic