linux/drivers/hwmon/pmbus/mpq7932.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * mpq7932.c - hwmon with optional regulator driver for mps mpq7932
 * Copyright 2022 Monolithic Power Systems, Inc
 *
 * Author: Saravanan Sekar <[email protected]>
 */

#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 <linux/pmbus.h>
#include "pmbus.h"

#define MPQ7932_BUCK_UV_MIN
#define MPQ7932_UV_STEP
#define MPQ7932_N_VOLTAGES
#define MPQ7932_VOUT_MAX
#define MPQ7932_NUM_PAGES
#define MPQ2286_NUM_PAGES

#define MPQ7932_TON_DELAY
#define MPQ7932_VOUT_STARTUP_SLEW
#define MPQ7932_VOUT_SHUTDOWN_SLEW
#define MPQ7932_VOUT_SLEW_MASK
#define MPQ7932_TON_DELAY_MASK

struct mpq7932_data {};

#if IS_ENABLED(CONFIG_SENSORS_MPQ7932_REGULATOR)
static const struct regulator_desc mpq7932_regulators_desc[] =;

static const struct regulator_desc mpq7932_regulators_desc_one[] =;
#endif

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

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

static int mpq7932_probe(struct i2c_client *client)
{}

static const struct of_device_id mpq7932_of_match[] =;
MODULE_DEVICE_TABLE(of, mpq7932_of_match);

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

static struct i2c_driver mpq7932_regulator_driver =;
module_i2c_driver();

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