/* * 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>/* TODO: convert to gpiod_*() API once it has been merged */#define PWM_BACKLIGHT_GPIO_ACTIVE_LOW (1 << 0)structplatform_pwm_backlight_data{intpwm_id;unsignedintmax_brightness;unsignedintdft_brightness;unsignedintlth_brightness;unsignedintpwm_period_ns;unsignedint*levels;intenable_gpio;unsignedlongenable_gpio_flags;int(*init)(structdevice*dev);int(*notify)(structdevice*dev,intbrightness);void(*notify_after)(structdevice*dev,intbrightness);void(*exit)(structdevice*dev);int(*check_fb)(structdevice*dev,structfb_info*info);};#endif