aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-09-23 15:25:29 -0400
committerChris Michael <cp.michael@samsung.com>2014-09-23 15:25:29 -0400
commitc2f5e8331aeeaf8c037e032860545513864764a9 (patch)
treefa0e762ce2d1da93d1e08f627ad1b13635e352d7
parenteeze: Add Eeze udev types for backlight and leds (diff)
downloadefl-c2f5e8331aeeaf8c037e032860545513864764a9.tar.gz
eeze: Add cases for backlight and leds in eeze_udev_find_by_type
Summary: Add code to find backlight and led devices inside eeze_udev_find_by_type function. This will be used in Ecore-Drm to find the backlight of an output. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/eeze/eeze_udev_find.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/eeze/eeze_udev_find.c b/src/lib/eeze/eeze_udev_find.c
index 252d7af222..899a53bcb0 100644
--- a/src/lib/eeze/eeze_udev_find.c
+++ b/src/lib/eeze/eeze_udev_find.c
@@ -238,6 +238,14 @@ eeze_udev_find_by_type(Eeze_Udev_Type etype,
udev_enumerate_add_match_subsystem(en, "card[0-9]*");
break;
+ case EEZE_UDEV_TYPE_BACKLIGHT:
+ udev_enumerate_add_match_subsystem(en, "backlight");
+ break;
+
+ case EEZE_UDEV_TYPE_LEDS:
+ udev_enumerate_add_match_subsystem(en, "leds");
+ break;
+
default:
break;
}