#include <linux/acpi.h>
#include <linux/backlight.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_data/x86/nvidia-wmi-ec-backlight.h>
#include <linux/types.h>
#include <linux/wmi.h>
#include <acpi/video.h>
static bool force;
module_param(force, bool, 0444);
MODULE_PARM_DESC(…) …;
static int wmi_brightness_notify(struct wmi_device *w, enum wmi_brightness_method id, enum wmi_brightness_mode mode, u32 *val)
{ … }
static int nvidia_wmi_ec_backlight_update_status(struct backlight_device *bd)
{ … }
static int nvidia_wmi_ec_backlight_get_brightness(struct backlight_device *bd)
{ … }
static const struct backlight_ops nvidia_wmi_ec_backlight_ops = …;
static int nvidia_wmi_ec_backlight_probe(struct wmi_device *wdev, const void *ctx)
{ … }
static const struct wmi_device_id nvidia_wmi_ec_backlight_id_table[] = …;
MODULE_DEVICE_TABLE(wmi, nvidia_wmi_ec_backlight_id_table);
static struct wmi_driver nvidia_wmi_ec_backlight_driver = …;
module_wmi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;