pwm_backlight.h 419 B

1234567891011121314151617
  1. /*
  2. * Generic PWM backlight driver data - see drivers/video/backlight/pwm_bl.c
  3. */
  4. #ifndef __LINUX_PWM_BACKLIGHT_H
  5. #define __LINUX_PWM_BACKLIGHT_H
  6. struct platform_pwm_backlight_data {
  7. int pwm_id;
  8. unsigned int max_brightness;
  9. unsigned int dft_brightness;
  10. unsigned int pwm_period_ns;
  11. int (*init)(struct device *dev);
  12. int (*notify)(struct device *dev, int brightness);
  13. void (*exit)(struct device *dev);
  14. };
  15. #endif