devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=30c6aed053ad7898cbe96aac9d74e6d4a27d9cc1

commit 30c6aed053ad7898cbe96aac9d74e6d4a27d9cc1
Author: Chris Michael <[email protected]>
Date:   Tue Sep 23 15:26:30 2014 -0400

    eeze: Add cases for backlight and leds in get_syspath_from_watch.
    
    Summary: This adds support for backlight and leds devices for use with
    an Eeze_Udev_Watch
    
    @feature
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/eeze/eeze_udev_watch.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/lib/eeze/eeze_udev_watch.c b/src/lib/eeze/eeze_udev_watch.c
index c51f396..0d4ad29 100644
--- a/src/lib/eeze/eeze_udev_watch.c
+++ b/src/lib/eeze/eeze_udev_watch.c
@@ -240,6 +240,16 @@ _get_syspath_from_watch(void             *data,
             || (strcmp(test, "drm")))
           goto error;
 
+      case EEZE_UDEV_TYPE_BACKLIGHT:
+        if ((!(test = udev_device_get_subsystem(device)))
+            || (strcmp(test, "backlight")))
+          goto error;
+
+      case EEZE_UDEV_TYPE_LEDS:
+        if ((!(test = udev_device_get_subsystem(device)))
+            || (strcmp(test, "leds")))
+          goto error;
+
         break;
       default:
         break;

-- 


Reply via email to