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:
parent
e80f9c4670
commit
d12d50d107
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue