blob: 63d2df43e61a1999206d15b6d06f3567b9ac8f9e [file] [log] [blame]
eric miao42796d32008-04-14 09:35:08 +01001/*
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
Robert Morellef0a5e82011-03-22 16:30:31 -07007#include <linux/backlight.h>
8
eric miao42796d32008-04-14 09:35:08 +01009struct platform_pwm_backlight_data {
10 int pwm_id;
11 unsigned int max_brightness;
12 unsigned int dft_brightness;
Arun Murthyfef77642010-11-11 14:05:28 -080013 unsigned int lth_brightness;
eric miao42796d32008-04-14 09:35:08 +010014 unsigned int pwm_period_ns;
Philipp Zabel3b731252008-05-22 14:18:40 +010015 int (*init)(struct device *dev);
Ben Dookscfc38992009-11-10 17:20:40 +000016 int (*notify)(struct device *dev, int brightness);
Dilan Leecc7993f2011-08-25 15:59:17 -070017 void (*notify_after)(struct device *dev, int brightness);
Philipp Zabel3b731252008-05-22 14:18:40 +010018 void (*exit)(struct device *dev);
Robert Morellef0a5e82011-03-22 16:30:31 -070019 int (*check_fb)(struct device *dev, struct fb_info *info);
eric miao42796d32008-04-14 09:35:08 +010020};
21
22#endif