diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-07-03 08:38:20 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-07-03 08:38:20 +0200 |
commit | f037355761e79736bef67df1c17c1049e91c52c0 (patch) | |
tree | 6e11b6655d72eed5c4bcd35146c647f03adfe301 /include | |
parent | 18ea2863bf76d6cd81c83706b5eb180dc5ad23bc (diff) | |
parent | af2cc97ede7155cdb8e1c0caa48d9c9aa12a8cb7 (diff) | |
download | barebox-f037355761e79736bef67df1c17c1049e91c52c0.tar.gz barebox-f037355761e79736bef67df1c17c1049e91c52c0.tar.xz |
Merge branch 'for-next/pwm'
Diffstat (limited to 'include')
-rw-r--r-- | include/pwm.h | 2 | ||||
-rw-r--r-- | include/video/backlight.h | 20 |
2 files changed, 22 insertions, 0 deletions
diff --git a/include/pwm.h b/include/pwm.h index 59d86d497d..911c760839 100644 --- a/include/pwm.h +++ b/include/pwm.h @@ -57,12 +57,14 @@ struct pwm_ops { /** * struct pwm_chip - abstract a PWM + * @id: The id of this pwm * @devname: unique identifier for this pwm * @ops: The callbacks for this PWM * @duty_ns: The duty cycle of the PWM, in nano-seconds * @period_ns: The period of the PWM, in nano-seconds */ struct pwm_chip { + int id; const char *devname; struct pwm_ops *ops; int duty_ns; diff --git a/include/video/backlight.h b/include/video/backlight.h new file mode 100644 index 0000000000..56e0341ea4 --- /dev/null +++ b/include/video/backlight.h @@ -0,0 +1,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 */ |