linux/drivers/regulator/tps6286x-regulator.c

// SPDX-License-Identifier: GPL-2.0-only
// Copyright Axis Communications AB

#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/regmap.h>
#include <linux/regulator/of_regulator.h>
#include <linux/regulator/machine.h>
#include <linux/regulator/driver.h>

#include <dt-bindings/regulator/ti,tps62864.h>

#define TPS6286X_VOUT1
#define TPS6286X_VOUT1_VO1_SET

#define TPS6286X_CONTROL
#define TPS6286X_CONTROL_FPWM
#define TPS6286X_CONTROL_SWEN

#define TPS6286X_MIN_MV
#define TPS6286X_MAX_MV
#define TPS6286X_STEP_MV

static const struct regmap_config tps6286x_regmap_config =;

static int tps6286x_set_mode(struct regulator_dev *rdev, unsigned int mode)
{}

static unsigned int tps6286x_get_mode(struct regulator_dev *rdev)
{}

static const struct regulator_ops tps6286x_regulator_ops =;

static unsigned int tps6286x_of_map_mode(unsigned int mode)
{}

static const struct regulator_desc tps6286x_reg =;

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

static int tps6286x_i2c_probe(struct i2c_client *i2c)
{}

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

static struct i2c_driver tps6286x_regulator_driver =;

module_i2c_driver();

MODULE_DESCRIPTION();
MODULE_LICENSE();