[PATCH libdrm 1/2] xf86drm: generalize the device subsystem type parsing code