linux/drivers/hwmon/lm95234.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Driver for Texas Instruments / National Semiconductor LM95234
 *
 * Copyright (c) 2013, 2014 Guenter Roeck <[email protected]>
 *
 * Derived from lm95241.c
 * Copyright (C) 2008, 2010 Davide Rizzo <[email protected]>
 */

#include <linux/err.h>
#include <linux/hwmon.h>
#include <linux/i2c.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/regmap.h>
#include <linux/util_macros.h>

#define DRVNAME

enum chips {};

static const unsigned short normal_i2c[] =;

/* LM95234 registers */
#define LM95234_REG_MAN_ID
#define LM95234_REG_CHIP_ID
#define LM95234_REG_STATUS
#define LM95234_REG_CONFIG
#define LM95234_REG_CONVRATE
#define LM95234_REG_ENABLE
#define LM95234_REG_FILTER
#define LM95234_REG_STS_FAULT
#define LM95234_REG_STS_TCRIT1
#define LM95234_REG_STS_TCRIT2
#define LM95234_REG_TEMPH(x)
#define LM95234_REG_TEMPL(x)
#define LM95234_REG_UTEMPH(x)
#define LM95234_REG_UTEMPL(x)
#define LM95234_REG_REM_MODEL
#define LM95234_REG_REM_MODEL_STS
#define LM95234_REG_OFFSET(x)
#define LM95234_REG_TCRIT1(x)
#define LM95234_REG_TCRIT2(x)
#define LM95234_REG_TCRIT_HYST

#define NATSEMI_MAN_ID
#define LM95233_CHIP_ID
#define LM95234_CHIP_ID

/* Client data (each client gets its own) */
struct lm95234_data {};

static int lm95234_read_temp(struct regmap *regmap, int index, long *t)
{}

static int lm95234_hyst_get(struct regmap *regmap, int reg, long *val)
{}

static ssize_t lm95234_hyst_set(struct lm95234_data *data, long val)
{}

static int lm95234_crit_reg(int channel)
{}

static int lm95234_temp_write(struct device *dev, u32 attr, int channel, long val)
{}

static int lm95234_alarm_reg(int channel)
{}

static int lm95234_temp_read(struct device *dev, u32 attr, int channel, long *val)
{}

static u16 update_intervals[] =;

static int lm95234_chip_write(struct device *dev, u32 attr, long val)
{}

static int lm95234_chip_read(struct device *dev, u32 attr, long *val)
{}

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

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

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

static const struct hwmon_channel_info * const lm95234_info[] =;

static const struct hwmon_ops lm95234_hwmon_ops =;

static const struct hwmon_chip_info lm95234_chip_info =;

static bool lm95234_volatile_reg(struct device *dev, unsigned int reg)
{}

static bool lm95234_writeable_reg(struct device *dev, unsigned int reg)
{}

static const struct regmap_config lm95234_regmap_config =;

static int lm95234_detect(struct i2c_client *client,
			  struct i2c_board_info *info)
{}

static int lm95234_init_client(struct device *dev, struct regmap *regmap)
{}

static int lm95234_probe(struct i2c_client *client)
{}

/* Driver data (common to all clients) */
static const struct i2c_device_id lm95234_id[] =;
MODULE_DEVICE_TABLE(i2c, lm95234_id);

static struct i2c_driver lm95234_driver =;

module_i2c_driver();

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