linux/drivers/regulator/tps65132-regulator.c

/*
 * TI TPS65132 Regulator driver
 *
 * Copyright (C) 2017 NVIDIA CORPORATION. All rights reserved.
 *
 * Author: Venkat Reddy Talla <[email protected]>
 *		Laxman Dewangan <[email protected]>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed "as is" WITHOUT ANY WARRANTY of any kind,
 * whether express or implied; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 */

#include <linux/delay.h>
#include <linux/err.h>
#include <linux/gpio/consumer.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/regmap.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>

#define TPS65132_REG_VPOS
#define TPS65132_REG_VNEG
#define TPS65132_REG_APPS_DISP_DISN
#define TPS65132_REG_CONTROL

#define TPS65132_VOUT_MASK
#define TPS65132_VOUT_N_VOLTAGE
#define TPS65132_VOUT_VMIN
#define TPS65132_VOUT_VMAX
#define TPS65132_VOUT_STEP

#define TPS65132_REG_APPS_DIS_VPOS
#define TPS65132_REG_APPS_DIS_VNEG

#define TPS65132_REGULATOR_ID_VPOS
#define TPS65132_REGULATOR_ID_VNEG
#define TPS65132_MAX_REGULATORS

#define TPS65132_ACT_DIS_TIME_SLACK

struct tps65132_reg_pdata {};

struct tps65132_regulator {};

static int tps65132_regulator_enable(struct regulator_dev *rdev)
{}

static int tps65132_regulator_disable(struct regulator_dev *rdev)
{}

static int tps65132_regulator_is_enabled(struct regulator_dev *rdev)
{}

static const struct regulator_ops tps65132_regulator_ops =;

static int tps65132_of_parse_cb(struct device_node *np,
				const struct regulator_desc *desc,
				struct regulator_config *config)
{}

#define TPS65132_REGULATOR_DESC(_id, _name)

static const struct regulator_desc tps_regs_desc[TPS65132_MAX_REGULATORS] =;

static const struct regmap_range tps65132_no_reg_ranges[] =;

static const struct regmap_access_table tps65132_no_reg_table =;

static const struct regmap_config tps65132_regmap_config =;

static int tps65132_probe(struct i2c_client *client)
{}

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

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

static struct i2c_driver tps65132_i2c_driver =;

module_i2c_driver();

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