linux/drivers/hwmon/pmbus/max8688.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Hardware monitoring driver for Maxim MAX8688
 *
 * Copyright (c) 2011 Ericsson AB.
 */

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

#define MAX8688_MFR_VOUT_PEAK
#define MAX8688_MFR_IOUT_PEAK
#define MAX8688_MFR_TEMPERATURE_PEAK
#define MAX8688_MFG_STATUS

#define MAX8688_STATUS_OC_FAULT
#define MAX8688_STATUS_OV_FAULT
#define MAX8688_STATUS_OV_WARNING
#define MAX8688_STATUS_UV_FAULT
#define MAX8688_STATUS_UV_WARNING
#define MAX8688_STATUS_UC_FAULT
#define MAX8688_STATUS_OC_WARNING
#define MAX8688_STATUS_OT_FAULT
#define MAX8688_STATUS_OT_WARNING

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

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

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

static struct pmbus_driver_info max8688_info =;

static int max8688_probe(struct i2c_client *client)
{}

static const struct i2c_device_id max8688_id[] =;

MODULE_DEVICE_TABLE(i2c, max8688_id);

/* This is the driver that will be inserted */
static struct i2c_driver max8688_driver =;

module_i2c_driver();

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