linux/drivers/thermal/broadcom/sr-thermal.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (C) 2018 Broadcom
 */

#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/thermal.h>

/*
 * In stingray thermal IO memory,
 * Total Number of available TMONs MASK is at offset 0
 * temperature registers BASE is at 4 byte offset.
 * Each TMON temperature register size is 4.
 */
#define SR_TMON_TEMP_BASE(id)

#define SR_TMON_MAX_LIST

struct sr_tmon {};

struct sr_thermal {};

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

static const struct thermal_zone_device_ops sr_tz_ops =;

static int sr_thermal_probe(struct platform_device *pdev)
{}

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

static struct platform_driver sr_thermal_driver =;
module_platform_driver();

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