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>
This commit is contained in:
Chris Michael 2014-09-23 15:26:30 -04:00
parent c2f5e8331a
commit 30c6aed053
1 changed files with 10 additions and 0 deletions

View File

@ -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;