discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4d9b5b8f195d5f738a603142671497b1cd3722ab

commit 4d9b5b8f195d5f738a603142671497b1cd3722ab
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Apr 23 13:11:22 2015 -0400

    ecore-drm: restrict output backlight detection to drm device
    
    previously this would pull in any available backlight device regardless
    of whether it was actually attached to the device or output in any way
---
 src/lib/ecore_drm/ecore_drm_output.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_drm/ecore_drm_output.c 
b/src/lib/ecore_drm/ecore_drm_output.c
index c07efc6..75b9fcc 100644
--- a/src/lib/ecore_drm/ecore_drm_output.c
+++ b/src/lib/ecore_drm/ecore_drm_output.c
@@ -327,7 +327,7 @@ _ecore_drm_output_brightness_set(Ecore_Drm_Backlight 
*backlight, double brightne
 */
 
 static Ecore_Drm_Backlight *
-_ecore_drm_output_backlight_init(Ecore_Drm_Output *output EINA_UNUSED, 
uint32_t conn_type)
+_ecore_drm_output_backlight_init(Ecore_Drm_Output *output, uint32_t conn_type)
 {
    Ecore_Drm_Backlight *backlight = NULL;
    Ecore_Drm_Backlight_Type type = 0;
@@ -342,6 +342,8 @@ _ecore_drm_output_backlight_init(Ecore_Drm_Output *output 
EINA_UNUSED, uint32_t
 
    EINA_LIST_FOREACH(devs, l, device)
      {
+        /* ensure this backlight is owned by this output's device */
+        if (strncmp(device, output->dev->drm.path, 
strlen(output->dev->drm.path))) continue;
         if (!(devtype = eeze_udev_syspath_get_sysattr(device, "type")))
           continue;
 

-- 


Reply via email to