mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-31 08:26:29 +00:00 
			
		
		
		
	 cfc3899fcd
			
		
	
	
		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
 |