summaryrefslogtreecommitdiff
path: root/src/lib/eeze
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-09-23 15:26:30 -0400
committerChris Michael <cp.michael@samsung.com>2014-09-23 15:26:30 -0400
commit30c6aed053ad7898cbe96aac9d74e6d4a27d9cc1 (patch)
tree3fbb327ac8c85ce6b93932da6c16a917c210bc91 /src/lib/eeze
parentc2f5e8331aeeaf8c037e032860545513864764a9 (diff)
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 <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/eeze')
-rw-r--r--src/lib/eeze/eeze_udev_watch.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/eeze/eeze_udev_watch.c b/src/lib/eeze/eeze_udev_watch.c
index c51f396548..0d4ad29b00 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,
240 || (strcmp(test, "drm"))) 240 || (strcmp(test, "drm")))
241 goto error; 241 goto error;
242 242
243 case EEZE_UDEV_TYPE_BACKLIGHT:
244 if ((!(test = udev_device_get_subsystem(device)))
245 || (strcmp(test, "backlight")))
246 goto error;
247
248 case EEZE_UDEV_TYPE_LEDS:
249 if ((!(test = udev_device_get_subsystem(device)))
250 || (strcmp(test, "leds")))
251 goto error;
252
243 break; 253 break;
244 default: 254 default:
245 break; 255 break;