mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
cfc3899fcd
Add the device to the notify callback's arguments in the PWM backlight driver. This brings the notify callback into line with the other callbacks defined by this driver. Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Simtec Linux Team <linux@simtec.co.uk> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
17 lines
419 B
C
17 lines
419 B
C
/*
|
|
* Generic PWM backlight driver data - see drivers/video/backlight/pwm_bl.c
|
|
*/
|
|
#ifndef __LINUX_PWM_BACKLIGHT_H
|
|
#define __LINUX_PWM_BACKLIGHT_H
|
|
|
|
struct platform_pwm_backlight_data {
|
|
int pwm_id;
|
|
unsigned int max_brightness;
|
|
unsigned int dft_brightness;
|
|
unsigned int pwm_period_ns;
|
|
int (*init)(struct device *dev);
|
|
int (*notify)(struct device *dev, int brightness);
|
|
void (*exit)(struct device *dev);
|
|
};
|
|
|
|
#endif
|