#include <linux/bits.h>
#include <linux/dev_printk.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/errno.h>
#include <linux/hwmon.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/irqreturn.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/regmap.h>
#define MC34VR500_I2C_ADDR …
#define MC34VR500_DEVICEID_VALUE …
#define ENS_BIT …
#define LOWVINS_BIT …
#define THERM110S_BIT …
#define THERM120S_BIT …
#define THERM125S_BIT …
#define THERM130S_BIT …
#define MC34VR500_DEVICEID …
#define MC34VR500_SILICONREVID …
#define MC34VR500_FABID …
#define MC34VR500_INTSTAT0 …
#define MC34VR500_INTMASK0 …
#define MC34VR500_INTSENSE0 …
struct mc34vr500_data { … };
static irqreturn_t mc34vr500_process_interrupt(int irq, void *userdata)
{ … }
static umode_t mc34vr500_is_visible(const void *data,
enum hwmon_sensor_types type,
u32 attr, int channel)
{ … }
static int mc34vr500_alarm_read(struct mc34vr500_data *data, int index,
long *val)
{ … }
static int mc34vr500_read(struct device *dev, enum hwmon_sensor_types type,
u32 attr, int channel, long *val)
{ … }
static const struct hwmon_channel_info * const mc34vr500_info[] = …;
static const struct hwmon_ops mc34vr500_hwmon_ops = …;
static const struct hwmon_chip_info mc34vr500_chip_info = …;
static const struct regmap_config mc34vr500_regmap_config = …;
static int mc34vr500_probe(struct i2c_client *client)
{ … }
static const struct i2c_device_id mc34vr500_id[] = …;
MODULE_DEVICE_TABLE(i2c, mc34vr500_id);
static const struct of_device_id __maybe_unused mc34vr500_of_match[] = …;
MODULE_DEVICE_TABLE(of, mc34vr500_of_match);
static struct i2c_driver mc34vr500_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;