linux/drivers/thermal/intel/int340x_thermal/int3406_thermal.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * INT3406 thermal driver for display participant device
 *
 * Copyright (C) 2016, Intel Corporation
 * Authors: Aaron Lu <[email protected]>
 */

#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/acpi.h>
#include <linux/backlight.h>
#include <linux/thermal.h>
#include <acpi/video.h>

#define INT3406_BRIGHTNESS_LIMITS_CHANGED

struct int3406_thermal_data {};

/*
 * According to the ACPI spec,
 * "Each brightness level is represented by a number between 0 and 100,
 * and can be thought of as a percentage. For example, 50 can be 50%
 * power consumption or 50% brightness, as defined by the OEM."
 *
 * As int3406 device uses this value to communicate with the native
 * graphics driver, we make the assumption that it represents
 * the percentage of brightness only
 */
#define ACPI_TO_RAW(v, d)
#define RAW_TO_ACPI(v, d)

static int
int3406_thermal_get_max_state(struct thermal_cooling_device *cooling_dev,
			      unsigned long *state)
{}

static int
int3406_thermal_set_cur_state(struct thermal_cooling_device *cooling_dev,
			      unsigned long state)
{}

static int
int3406_thermal_get_cur_state(struct thermal_cooling_device *cooling_dev,
			      unsigned long *state)
{}

static const struct thermal_cooling_device_ops video_cooling_ops =;

static int int3406_thermal_get_index(int *array, int nr, int value)
{}

static void int3406_thermal_get_limit(struct int3406_thermal_data *d)
{}

static void int3406_notify(acpi_handle handle, u32 event, void *data)
{}

static int int3406_thermal_probe(struct platform_device *pdev)
{}

static void int3406_thermal_remove(struct platform_device *pdev)
{}

static const struct acpi_device_id int3406_thermal_match[] =;

MODULE_DEVICE_TABLE(acpi, int3406_thermal_match);

static struct platform_driver int3406_thermal_driver =;

module_platform_driver();

MODULE_DESCRIPTION();
MODULE_LICENSE();