Blame view

include/linux/pwm_backlight.h 782 Bytes
42796d37d   eric miao   [ARM] pxa: add ge...
1
2
3
4
5
  /*
   * Generic PWM backlight driver data - see drivers/video/backlight/pwm_bl.c
   */
  #ifndef __LINUX_PWM_BACKLIGHT_H
  #define __LINUX_PWM_BACKLIGHT_H
ef0a5e80f   Robert Morell   pwm_backlight: ad...
6
  #include <linux/backlight.h>
2b9b16203   Thierry Reding   pwm-backlight: Ad...
7
8
  /* TODO: convert to gpiod_*() API once it has been merged */
  #define PWM_BACKLIGHT_GPIO_ACTIVE_LOW	(1 << 0)
42796d37d   eric miao   [ARM] pxa: add ge...
9
10
11
12
  struct platform_pwm_backlight_data {
  	int pwm_id;
  	unsigned int max_brightness;
  	unsigned int dft_brightness;
fef7764f8   Arun Murthy   backlight: add lo...
13
  	unsigned int lth_brightness;
42796d37d   eric miao   [ARM] pxa: add ge...
14
  	unsigned int pwm_period_ns;
3e3ed6cdc   Thierry Reding   pwm-backlight: Ad...
15
  	unsigned int *levels;
2b9b16203   Thierry Reding   pwm-backlight: Ad...
16
17
  	int enable_gpio;
  	unsigned long enable_gpio_flags;
3b73125af   Philipp Zabel   [ARM] 5044/1: pwm...
18
  	int (*init)(struct device *dev);
cfc3899fc   Ben Dooks   backlight: Pass d...
19
  	int (*notify)(struct device *dev, int brightness);
cc7993f64   Dilan Lee   backlight: add a ...
20
  	void (*notify_after)(struct device *dev, int brightness);
3b73125af   Philipp Zabel   [ARM] 5044/1: pwm...
21
  	void (*exit)(struct device *dev);
ef0a5e80f   Robert Morell   pwm_backlight: ad...
22
  	int (*check_fb)(struct device *dev, struct fb_info *info);
42796d37d   eric miao   [ARM] pxa: add ge...
23
24
25
  };
  
  #endif