linux/drivers/hwmon/tc74.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * An hwmon driver for the Microchip TC74
 *
 * Copyright 2015 Maciej Szmigiero <[email protected]>
 *
 * Based on ad7414.c:
 *	Copyright 2006 Stefan Roese, DENX Software Engineering
 *	Copyright 2008 Sean MacLennan, PIKA Technologies
 *	Copyright 2008 Frank Edelhaeuser, Spansion Inc.
 */

#include <linux/bitops.h>
#include <linux/err.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/i2c.h>
#include <linux/jiffies.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/sysfs.h>

/* TC74 registers */
#define TC74_REG_TEMP
#define TC74_REG_CONFIG

struct tc74_data {};

static int tc74_update_device(struct device *dev)
{}

static ssize_t temp_input_show(struct device *dev,
			       struct device_attribute *attr, char *buf)
{}
static SENSOR_DEVICE_ATTR_RO(temp1_input, temp_input, 0);

static struct attribute *tc74_attrs[] =;

ATTRIBUTE_GROUPS();

static int tc74_probe(struct i2c_client *client)
{}

static const struct i2c_device_id tc74_id[] =;
MODULE_DEVICE_TABLE(i2c, tc74_id);

static struct i2c_driver tc74_driver =;

module_i2c_driver();

MODULE_AUTHOR();

MODULE_DESCRIPTION();
MODULE_LICENSE();