]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/pwm_backlight.h
net: rtnetlink: validate IFLA_MTU attribute in rtnl_create_link()
[mirror_ubuntu-bionic-kernel.git] / include / linux / pwm_backlight.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
42796d37 2/*
3 * Generic PWM backlight driver data - see drivers/video/backlight/pwm_bl.c
4 */
5#ifndef __LINUX_PWM_BACKLIGHT_H
6#define __LINUX_PWM_BACKLIGHT_H
7
ef0a5e80
RM
8#include <linux/backlight.h>
9
42796d37 10struct platform_pwm_backlight_data {
11 int pwm_id;
12 unsigned int max_brightness;
13 unsigned int dft_brightness;
fef7764f 14 unsigned int lth_brightness;
42796d37 15 unsigned int pwm_period_ns;
3e3ed6cd 16 unsigned int *levels;
257462db 17 /* TODO remove once all users are switched to gpiod_* API */
2b9b1620 18 int enable_gpio;
3b73125a 19 int (*init)(struct device *dev);
cfc3899f 20 int (*notify)(struct device *dev, int brightness);
cc7993f6 21 void (*notify_after)(struct device *dev, int brightness);
3b73125a 22 void (*exit)(struct device *dev);
ef0a5e80 23 int (*check_fb)(struct device *dev, struct fb_info *info);
42796d37 24};
25
26#endif