linux/drivers/regulator/wm8400-regulator.c

// SPDX-License-Identifier: GPL-2.0+
//
// Regulator support for WM8400
//
// Copyright 2008 Wolfson Microelectronics PLC.
//
// Author: Mark Brown <[email protected]>

#include <linux/bug.h>
#include <linux/err.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/regulator/driver.h>
#include <linux/mfd/wm8400-private.h>

static const struct linear_range wm8400_ldo_ranges[] =;

static const struct regulator_ops wm8400_ldo_ops =;

static unsigned int wm8400_dcdc_get_mode(struct regulator_dev *dev)
{}

static int wm8400_dcdc_set_mode(struct regulator_dev *dev, unsigned int mode)
{}

static unsigned int wm8400_dcdc_get_optimum_mode(struct regulator_dev *dev,
						 int input_uV, int output_uV,
						 int load_uA)
{}

static const struct regulator_ops wm8400_dcdc_ops =;

static struct regulator_desc regulators[] =;

static int wm8400_regulator_probe(struct platform_device *pdev)
{}

static struct platform_driver wm8400_regulator_driver =;

/**
 * wm8400_register_regulator - enable software control of a WM8400 regulator
 *
 * This function enables software control of a WM8400 regulator via
 * the regulator API.  It is intended to be called from the
 * platform_init() callback of the WM8400 MFD driver.
 *
 * @dev:      The WM8400 device to operate on.
 * @reg:      The regulator to control.
 * @initdata: Regulator initdata for the regulator.
 */
int wm8400_register_regulator(struct device *dev, int reg,
			      struct regulator_init_data *initdata)
{}
EXPORT_SYMBOL_GPL();

static int __init wm8400_regulator_init(void)
{}
subsys_initcall(wm8400_regulator_init);

static void __exit wm8400_regulator_exit(void)
{}
module_exit(wm8400_regulator_exit);

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