#define pr_fmt(fmt) …
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/backlight.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/pci.h>
#include <linux/acpi.h>
#include <linux/atomic.h>
#include <acpi/video.h>
static struct backlight_device *apple_backlight_device;
struct hw_data { … };
static const struct hw_data *hw_data;
static int debug;
module_param_named(debug, debug, int, 0644);
MODULE_PARM_DESC(…) …;
static void intel_chipset_set_brightness(int intensity)
{ … }
static int intel_chipset_send_intensity(struct backlight_device *bd)
{ … }
static int intel_chipset_get_intensity(struct backlight_device *bd)
{ … }
static const struct hw_data intel_chipset_data = …;
static void nvidia_chipset_set_brightness(int intensity)
{ … }
static int nvidia_chipset_send_intensity(struct backlight_device *bd)
{ … }
static int nvidia_chipset_get_intensity(struct backlight_device *bd)
{ … }
static const struct hw_data nvidia_chipset_data = …;
static int apple_bl_add(struct acpi_device *dev)
{ … }
static void apple_bl_remove(struct acpi_device *dev)
{ … }
static const struct acpi_device_id apple_bl_ids[] = …;
static struct acpi_driver apple_bl_driver = …;
static int __init apple_bl_init(void)
{ … }
static void __exit apple_bl_exit(void)
{ … }
module_init(…) …;
module_exit(apple_bl_exit);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_DEVICE_TABLE(acpi, apple_bl_ids);
MODULE_ALIAS(…) …;