linux/drivers/hwmon/pmbus/lt7182s.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Hardware monitoring driver for Analog Devices LT7182S
 *
 * Copyright (c) 2022 Guenter Roeck
 *
 */

#include <linux/bits.h>
#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include "pmbus.h"

#define LT7182S_NUM_PAGES

#define MFR_READ_EXTVCC
#define MFR_READ_ITH
#define MFR_CONFIG_ALL_LT7182S
#define MFR_IOUT_PEAK
#define MFR_ADC_CONTROL_LT7182S

#define MFR_DEBUG_TELEMETRY

#define MFR_VOUT_PEAK
#define MFR_VIN_PEAK
#define MFR_TEMPERATURE_1_PEAK
#define MFR_CLEAR_PEAKS

#define MFR_CONFIG_IEEE

static int lt7182s_read_word_data(struct i2c_client *client, int page, int phase, int reg)
{}

static int lt7182s_write_word_data(struct i2c_client *client, int page, int reg, u16 word)
{}

static struct pmbus_driver_info lt7182s_info =;

static int lt7182s_probe(struct i2c_client *client)
{}

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

static const struct of_device_id __maybe_unused lt7182s_of_match[] =;

static struct i2c_driver lt7182s_driver =;

module_i2c_driver();

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