linux/drivers/thermal/thermal-generic-adc.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Generic ADC thermal driver
 *
 * Copyright (C) 2016 NVIDIA CORPORATION. All rights reserved.
 *
 * Author: Laxman Dewangan <[email protected]>
 */
#include <linux/iio/consumer.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/thermal.h>

#include "thermal_hwmon.h"

struct gadc_thermal_info {};

static int gadc_thermal_adc_to_temp(struct gadc_thermal_info *gti, int val)
{}

static int gadc_thermal_get_temp(struct thermal_zone_device *tz, int *temp)
{}

static const struct thermal_zone_device_ops gadc_thermal_ops =;

static int gadc_thermal_read_linear_lookup_table(struct device *dev,
						 struct gadc_thermal_info *gti)
{}

static int gadc_thermal_probe(struct platform_device *pdev)
{}

static const struct of_device_id of_adc_thermal_match[] =;
MODULE_DEVICE_TABLE(of, of_adc_thermal_match);

static struct platform_driver gadc_thermal_driver =;

module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();