summaryrefslogtreecommitdiff
path: root/src/lib/eeze
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-03-23 12:14:45 -0400
committerChris Michael <cp.michael@samsung.com>2015-03-23 12:14:45 -0400
commitfe77fb6c34a5acc041ad45e1cd56168ce92c51dd (patch)
treec671aed3d8f3e8f5cd3eeac42648c24406105fb1 /src/lib/eeze
parent105b0d75eee39db1410c3a8165e46d5344439ba1 (diff)
eeze: Fix issue of eeze_udev_watch_add not getting events for drm
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>
Diffstat (limited to 'src/lib/eeze')
-rw-r--r--src/lib/eeze/eeze_udev_watch.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/eeze/eeze_udev_watch.c b/src/lib/eeze/eeze_udev_watch.c
index ec26b9156e..5a477b92e1 100644
--- a/src/lib/eeze/eeze_udev_watch.c
+++ b/src/lib/eeze/eeze_udev_watch.c
@@ -239,6 +239,10 @@ _get_syspath_from_watch(void *data,
239 if ((!(test = udev_device_get_subsystem(device))) 239 if ((!(test = udev_device_get_subsystem(device)))
240 || (strcmp(test, "drm"))) 240 || (strcmp(test, "drm")))
241 goto error; 241 goto error;
242
243 test = udev_device_get_property_value(device, "HOTPLUG");
244 if ((!test) || (strcmp(test, "1"))) goto error;
245
242 break; 246 break;
243 247
244 case EEZE_UDEV_TYPE_BACKLIGHT: 248 case EEZE_UDEV_TYPE_BACKLIGHT:
@@ -334,8 +338,7 @@ eeze_udev_watch_add(Eeze_Udev_Type type,
334 break; 338 break;
335 339
336 case EEZE_UDEV_TYPE_DRM: 340 case EEZE_UDEV_TYPE_DRM:
337 udev_monitor_filter_add_match_subsystem_devtype(mon, "drm_minor", 341 udev_monitor_filter_add_match_subsystem_devtype(mon, "drm", NULL);
338 NULL);
339 break; 342 break;
340 343
341 default: 344 default: