linux/drivers/hwmon/lm70.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * lm70.c
 *
 * The LM70 is a temperature sensor chip from National Semiconductor (NS).
 * Copyright (C) 2006 Kaiwan N Billimoria <[email protected]>
 *
 * The LM70 communicates with a host processor via an SPI/Microwire Bus
 * interface. The complete datasheet is available at TI's website
 * here:
 * https://www.ti.com/product/LM70
 */

#define pr_fmt(fmt)

#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/sysfs.h>
#include <linux/hwmon.h>
#include <linux/mutex.h>
#include <linux/mod_devicetable.h>
#include <linux/of.h>
#include <linux/property.h>
#include <linux/spi/spi.h>
#include <linux/slab.h>

#define DRVNAME

#define LM70_CHIP_LM70
#define LM70_CHIP_TMP121
#define LM70_CHIP_LM71
#define LM70_CHIP_LM74
#define LM70_CHIP_TMP122
#define LM70_CHIP_TMP125

struct lm70 {};

/* sysfs hook function */
static ssize_t temp1_input_show(struct device *dev,
				struct device_attribute *attr, char *buf)
{}

static DEVICE_ATTR_RO(temp1_input);

static struct attribute *lm70_attrs[] =;

ATTRIBUTE_GROUPS();

/*----------------------------------------------------------------------*/

#ifdef CONFIG_OF
static const struct of_device_id lm70_of_ids[] =;
MODULE_DEVICE_TABLE(of, lm70_of_ids);
#endif

static int lm70_probe(struct spi_device *spi)
{}

static const struct spi_device_id lm70_ids[] =;
MODULE_DEVICE_TABLE(spi, lm70_ids);

static struct spi_driver lm70_driver =;

module_spi_driver();

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