only default to led subsystem backlight if it isn't a mail or kbd device

fix T1497

do backlights with subsystem=leds still exist or have they fixed that yet?
This commit is contained in:
Mike Blumenkrantz 2014-09-07 09:16:49 -04:00 committed by Cedric BAIL
parent 03b422544a
commit c1366d913f
1 changed files with 4 additions and 1 deletions

View File

@ -491,7 +491,10 @@ _bl_sys_find(void)
EINA_LIST_FOREACH(pdevs, l, f)
{
if (!bl_sysval)
bl_sysval = eina_stringshare_add(f);
{
if ((!strstr(f, "kbd")) && (!strstr(f, "mail")))
bl_sysval = eina_stringshare_add(f);
}
}
}
/* clear out preferred devs list */