diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-23 21:53:31 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-23 21:58:05 +0100 |
commit | f9e7ac7db7b0331131aa1df3a90d4b2692949efa (patch) | |
tree | 233f7acaed59163113e9898734fe62eb9a471e18 /src/backlight.h | |
parent | bc50dff844b97e655483c9eaf0effeec6a9ab4dd (diff) |
backlight: Set structure to safe values when not initialised
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/backlight.h')
-rw-r--r-- | src/backlight.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backlight.h b/src/backlight.h index c251bd92..6391be76 100644 --- a/src/backlight.h +++ b/src/backlight.h @@ -38,12 +38,13 @@ enum backlight_type { struct backlight { char *iface; enum backlight_type type; - int max; + int original, max; int pid, fd; }; enum backlight_type backlight_exists(const char *iface); +void backlight_init(struct backlight *backlight); int backlight_open(struct backlight *backlight, char *iface); int backlight_set(struct backlight *backlight, int level); int backlight_get(struct backlight *backlight); |