[automerger skipped] ANDROID: xf86drm: generalize the device subsystem type parsing code am: f900a0f0a2 am: 28c14c65a9 am: d1dff3ec52 -s ours

am skip reason: Change-Id Id9d162ebcca06f4fbcb8d5127e6a2cc35aaec58b with SHA-1 f900a0f0a2 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/external/libdrm/+/10433348

Change-Id: Icf5eb4e02a63c1864f8a96b5b7d2ed863ea75600