mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-29 22:56:47 +07: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>
18 lines
419 B
C
18 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
|