summaryrefslogtreecommitdiffstats
path: root/include/video/backlight.h
blob: 56e0341ea470ba9a4e83d7b98148eece4e948787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __VIDEO_BACKLIGHT_H
#define __VIDEO_BACKLIGHT_H

struct backlight_device {
	int brightness;
	int brightness_cur;
	int brightness_max;
	int brightness_default;
	int (*brightness_set)(struct backlight_device *, int brightness);
	struct list_head list;
	struct device_d dev;
	struct device_node *node;
};

int backlight_set_brightness(struct backlight_device *, int brightness);
int backlight_set_brightness_default(struct backlight_device *);
int backlight_register(struct backlight_device *);
struct backlight_device *of_backlight_find(struct device_node *node);

#endif /* __VIDEO_BACKLIGHT_H */