linux/drivers/regulator/sun20i-regulator.c

// SPDX-License-Identifier: GPL-2.0-only
//
// Copyright (c) 2021-2022 Samuel Holland <[email protected]>
//

#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/regulator/driver.h>

#define SUN20I_SYS_LDO_CTRL_REG

struct sun20i_regulator_data {};

/* regulator_list_voltage_linear() modified for the non-integral uV_step. */
static int sun20i_d1_system_ldo_list_voltage(struct regulator_dev *rdev,
					     unsigned int selector)
{}

static const struct regulator_ops sun20i_d1_system_ldo_ops =;

static const struct regulator_desc sun20i_d1_system_ldo_descs[] =;

static const struct sun20i_regulator_data sun20i_d1_system_ldos =;

static struct regmap *sun20i_regulator_get_regmap(struct device *dev)
{}

static int sun20i_regulator_probe(struct platform_device *pdev)
{}

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

static struct platform_driver sun20i_regulator_driver =;
module_platform_driver();

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