forked from mirrors/linux
		
	 397b749372
			
		
	
	
		397b749372
		
	
	
	
	
		
			
			The internal check_fb callback from struct pwm_bl_data is never implemented. The driver's implementation of check_fb always returns true, which is the backlight core's default if no implementation has been set. So remove the code from the driver. v2: * reword commit message Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://lore.kernel.org/r/20240305162425.23845-7-tzimmermann@suse.de Signed-off-by: Lee Jones <lee@kernel.org>
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			649 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			649 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0 */
 | |
| /*
 | |
|  * Generic PWM backlight driver data - see drivers/video/backlight/pwm_bl.c
 | |
|  */
 | |
| #ifndef __LINUX_PWM_BACKLIGHT_H
 | |
| #define __LINUX_PWM_BACKLIGHT_H
 | |
| 
 | |
| #include <linux/backlight.h>
 | |
| 
 | |
| struct platform_pwm_backlight_data {
 | |
| 	unsigned int max_brightness;
 | |
| 	unsigned int dft_brightness;
 | |
| 	unsigned int lth_brightness;
 | |
| 	unsigned int pwm_period_ns;
 | |
| 	unsigned int *levels;
 | |
| 	unsigned int post_pwm_on_delay;
 | |
| 	unsigned int pwm_off_delay;
 | |
| 	int (*init)(struct device *dev);
 | |
| 	int (*notify)(struct device *dev, int brightness);
 | |
| 	void (*notify_after)(struct device *dev, int brightness);
 | |
| 	void (*exit)(struct device *dev);
 | |
| };
 | |
| 
 | |
| #endif
 |