Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Generic PWM backlight driver data - see drivers/video/backlight/pwm_bl.c
0004  */
0005 #ifndef __LINUX_PWM_BACKLIGHT_H
0006 #define __LINUX_PWM_BACKLIGHT_H
0007 
0008 #include <linux/backlight.h>
0009 
0010 struct platform_pwm_backlight_data {
0011     int pwm_id;
0012     unsigned int max_brightness;
0013     unsigned int dft_brightness;
0014     unsigned int lth_brightness;
0015     unsigned int pwm_period_ns;
0016     unsigned int *levels;
0017     unsigned int post_pwm_on_delay;
0018     unsigned int pwm_off_delay;
0019     int (*init)(struct device *dev);
0020     int (*notify)(struct device *dev, int brightness);
0021     void (*notify_after)(struct device *dev, int brightness);
0022     void (*exit)(struct device *dev);
0023     int (*check_fb)(struct device *dev, struct fb_info *info);
0024 };
0025 
0026 #endif