linux/drivers/regulator/mt6311-regulator.c

// SPDX-License-Identifier: GPL-2.0
//
// Copyright (c) 2015 MediaTek Inc.
// Author: Henry Chen <[email protected]>

#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/regmap.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/regulator/of_regulator.h>
#include <linux/regulator/mt6311.h>
#include <linux/slab.h>
#include "mt6311-regulator.h"

static const struct regmap_config mt6311_regmap_config =;

/* Default limits measured in millivolts and milliamps */
#define MT6311_MIN_UV
#define MT6311_MAX_UV
#define MT6311_STEP_UV

static const struct regulator_ops mt6311_buck_ops =;

static const struct regulator_ops mt6311_ldo_ops =;

#define MT6311_BUCK(_id)

#define MT6311_LDO(_id)

static const struct regulator_desc mt6311_regulators[] =;

/*
 * I2C driver interface functions
 */
static int mt6311_i2c_probe(struct i2c_client *i2c)
{}

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

#ifdef CONFIG_OF
static const struct of_device_id mt6311_dt_ids[] =;
MODULE_DEVICE_TABLE(of, mt6311_dt_ids);
#endif

static struct i2c_driver mt6311_regulator_driver =;

module_i2c_driver();

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