xf86drm: Reuse sysfs_uevent_get()
authorThierry Reding <treding@nvidia.com>
Wed, 18 Jan 2017 07:29:23 +0000 (08:29 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 20 Jan 2017 15:27:33 +0000 (16:27 +0100)
commit5403cb39c124c444babec51bd4499971cd86ccfa
tree7a3a23cfcd24ce1856eca10ba8c067d3f9130a4d
parent13b99f2a898a67320499e538303a689a270bb7f4
xf86drm: Reuse sysfs_uevent_get()

Recent patches for USB, platform and host1x bus support introduced the
sysfs_uevent_get() function that provides a generic way of parsing the
sysfs uevent file that is associated with each device in Linux.

Open-coded variants of this still exist in other places, so make those
reuse the new function to remove some code duplication.

Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
xf86drm.c