xf86drm: Add drmGetDeviceFromMajorMinor
This adds a function to get a drmDevicePtr from a major+minor number of a device. This is useful for Wayland that uses these to identify devices over the protocol.
This is done by taking the implementation of drmGetDevice2, and removing the call to fstat to find the major+minor.
Signed-off-by: Scott Anderson scott.anderson@collabora.com
Note: it's not 100% set in stone yet that Wayland is going to be using major+minor, but is probably quite likely. I don't know if you want to merge this if it turns out we don't.
See