linux/drivers/video/backlight/apple_bl.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 *  Backlight Driver for Intel-based Apples
 *
 *  Copyright (c) Red Hat <[email protected]>
 *  Based on code from Pommed:
 *  Copyright (C) 2006 Nicolas Boichat <nicolas @boichat.ch>
 *  Copyright (C) 2006 Felipe Alfaro Solana <felipe_alfaro @linuxmail.org>
 *  Copyright (C) 2007 Julien BLACHE <[email protected]>
 *
 *  This driver triggers SMIs which cause the firmware to change the
 *  backlight brightness. This is icky in many ways, but it's impractical to
 *  get at the firmware code in order to figure out what it's actually doing.
 */

#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;

/* Module parameters. */
static int debug;
module_param_named(debug, debug, int, 0644);
MODULE_PARM_DESC();

/*
 * Implementation for machines with Intel chipset.
 */
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 =;

/*
 * Implementation for machines with Nvidia chipset.
 */
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();