linux/drivers/hwmon/sparx5-temp.c

// SPDX-License-Identifier: GPL-2.0-or-later
/* Sparx5 SoC temperature sensor driver
 *
 * Copyright (C) 2020 Lars Povlsen <[email protected]>
 */

#include <linux/bitfield.h>
#include <linux/clk.h>
#include <linux/hwmon.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>

#define TEMP_CTRL
#define TEMP_CFG
#define TEMP_CFG_CYCLES
#define TEMP_CFG_ENA
#define TEMP_STAT
#define TEMP_STAT_VALID
#define TEMP_STAT_TEMP

struct s5_hwmon {};

static void s5_temp_enable(struct s5_hwmon *hwmon)
{}

static int s5_read(struct device *dev, enum hwmon_sensor_types type,
		   u32 attr, int channel, long *temp)
{}

static umode_t s5_is_visible(const void *_data, enum hwmon_sensor_types type,
			     u32 attr, int channel)
{}

static const struct hwmon_channel_info * const s5_info[] =;

static const struct hwmon_ops s5_hwmon_ops =;

static const struct hwmon_chip_info s5_chip_info =;

static int s5_temp_probe(struct platform_device *pdev)
{}

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

static struct platform_driver s5_temp_driver =;

module_platform_driver();

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