proto: rework parse_addr to return struct device_addr