Summary: This fixes eeze_udev_watch_add for DRM events, Previously, we
were not getting a watch callback fired due to using the wrong
subsystem device type in
udev_monitor_filter_add_match_subsystem_devtype.
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
if ((!(test = udev_device_get_subsystem(device)))
|| (strcmp(test, "drm")))
goto error;
+
+ test = udev_device_get_property_value(device, "HOTPLUG");
+ if ((!test) || (strcmp(test, "1"))) goto error;
+
break;
case EEZE_UDEV_TYPE_BACKLIGHT:
break;
case EEZE_UDEV_TYPE_DRM:
- udev_monitor_filter_add_match_subsystem_devtype(mon, "drm_minor",
- NULL);
+ udev_monitor_filter_add_match_subsystem_devtype(mon, "drm", NULL);
break;
default: