linux/drivers/hwmon/scpi-hwmon.c

// SPDX-License-Identifier: GPL-2.0
/*
 * System Control and Power Interface(SCPI) based hwmon sensor driver
 *
 * Copyright (C) 2015 ARM Ltd.
 * Punit Agrawal <[email protected]>
 */

#include <linux/hwmon.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/scpi_protocol.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
#include <linux/thermal.h>

struct sensor_data {};

struct scpi_thermal_zone {};

struct scpi_sensors {};

static const u32 gxbb_scpi_scale[] =;

static const u32 scpi_scale[] =;

static void scpi_scale_reading(u64 *value, struct sensor_data *sensor)
{}

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

/* hwmon callback functions */
static ssize_t
scpi_show_sensor(struct device *dev, struct device_attribute *attr, char *buf)
{}

static ssize_t
scpi_show_label(struct device *dev, struct device_attribute *attr, char *buf)
{}

static const struct thermal_zone_device_ops scpi_sensor_ops =;

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

static int scpi_hwmon_probe(struct platform_device *pdev)
{}

static struct platform_driver scpi_hwmon_platdrv =;
module_platform_driver();

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