sna: Skip hidden and special entries inside /sys/class/backlight

Just to avoid the warnings after fallback to comparing the d_name to
the list of known interfaces.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-07-02 14:09:21 +01:00
parent e80f9c4670
commit d12d50d107
1 changed files with 3 additions and 0 deletions

View File

@ -331,6 +331,9 @@ sna_output_backlight_init(xf86OutputPtr output)
char buf[100];
int fd, v;
if (*de->d_name == '.')
continue;
snprintf(path, sizeof(path), "%s/%s/type",
BACKLIGHT_CLASS, de->d_name);