sna: Check that the backlight interface is in sysfs before access
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Feb 2014 14:53:14 +0000 (14:53 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Feb 2014 14:55:37 +0000 (14:55 +0000)
commit37dbd669415ac82a79b3699da0450aaf68cb1c4c
tree9554ac7c21b0e8b07df81f51503b1b7e8296f698
parent3a893d14cd227454826a9a86cb3ce227d04bc352
sna: Check that the backlight interface is in sysfs before access

Before we write values into the file, we want to be sure that it is our
sysfs backlight interface, and not some ordinary file we are about to
destroy.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_display.c