linux/drivers/regulator/lp873x-regulator.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Regulator driver for LP873X PMIC
 *
 * Copyright (C) 2016 Texas Instruments Incorporated - https://www.ti.com/
 */

#include <linux/bitfield.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>

#include <linux/mfd/lp873x.h>

#define LP873X_REGULATOR(_name, _id, _of, _ops, _n, _vr, _vm, _er, _em, \
			 _delay, _lr, _cr)

struct lp873x_regulator {};

static const struct lp873x_regulator regulators[];

static const struct linear_range buck0_buck1_ranges[] =;

static const struct linear_range ldo0_ldo1_ranges[] =;

static const unsigned int lp873x_buck_ramp_delay[] =;

/* LP873X BUCK current limit */
static const unsigned int lp873x_buck_uA[] =;

static int lp873x_buck_set_ramp_delay(struct regulator_dev *rdev,
				      int ramp_delay)
{}

/* Operations permitted on BUCK0, BUCK1 */
static const struct regulator_ops lp873x_buck01_ops =;

/* Operations permitted on LDO0 and LDO1 */
static const struct regulator_ops lp873x_ldo01_ops =;

static const struct lp873x_regulator regulators[] =;

static int lp873x_regulator_probe(struct platform_device *pdev)
{}

static const struct platform_device_id lp873x_regulator_id_table[] =;
MODULE_DEVICE_TABLE(platform, lp873x_regulator_id_table);

static struct platform_driver lp873x_regulator_driver =;
module_platform_driver();

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