[PATCH v6 1/3] qedit: Retrieve the pin media type using a helper function.