linux/drivers/hwmon/sl28cpld-hwmon.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * sl28cpld hardware monitoring driver
 *
 * Copyright 2020 Kontron Europe GmbH
 */

#include <linux/bitfield.h>
#include <linux/hwmon.h>
#include <linux/kernel.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/regmap.h>

#define FAN_INPUT
#define FAN_SCALE_X8
#define FAN_VALUE_MASK

struct sl28cpld_hwmon {};

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

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

static const struct hwmon_channel_info * const sl28cpld_hwmon_info[] =;

static const struct hwmon_ops sl28cpld_hwmon_ops =;

static const struct hwmon_chip_info sl28cpld_hwmon_chip_info =;

static int sl28cpld_hwmon_probe(struct platform_device *pdev)
{}

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

static struct platform_driver sl28cpld_hwmon_driver =;
module_platform_driver();

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