[PATCH v2 02/10] coresight: platform: Refactor graph endpoint parsing