mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
terminal: make drm-connectors first-level devices
So far, we only forward DRM cards via sysview APIs. However, with MST, connectors can be hotplugged, too. Forward the connectors as first-level devices via sysview so API users can react to changing DRM connectors.
This commit is contained in:
parent
965f7a3f9b
commit
c1102405c1
@ -895,7 +895,7 @@ static int context_ud_hotplug(sysview_context *c, struct udev_device *d) {
|
||||
|
||||
if (streq(subsystem, "input") && startswith(sysname, "event") && safe_atou(sysname + 5, &t) >= 0)
|
||||
type = SYSVIEW_DEVICE_EVDEV;
|
||||
else if (streq(subsystem, "drm") && startswith(sysname, "card") && safe_atou(sysname + 4, &t) >= 0)
|
||||
else if (streq(subsystem, "drm") && startswith(sysname, "card"))
|
||||
type = SYSVIEW_DEVICE_DRM;
|
||||
else
|
||||
type = (unsigned)-1;
|
||||
|
Loading…
Reference in New Issue
Block a user