xf86drm: generalize the device subsystem type parsing code
authorVasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
Wed, 29 Jan 2020 02:54:56 +0000 (03:54 +0100)
committerKristian H. Kristensen <hoegsberg@gmail.com>
Mon, 24 Feb 2020 21:53:41 +0000 (21:53 +0000)
commitc4eae71d7e44df2c1f89fb3460b1f7f8feaff0df
treeec488391cb2ac42c8a7ebd0efb6f5d12e194d06b
parent2c0a01261d35ae7be9d4de180884ce3f2900a07e
xf86drm: generalize the device subsystem type parsing code

Move the code, which used to get the device subsystem type from a device
path in sysfs, to a separate function to be reusable.

Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
Signed-off-by: Mikhail Golubev <Mikhail.Golubev@opensynergy.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
xf86drm.c