linux/drivers/regulator/tps68470-regulator.c

// SPDX-License-Identifier: GPL-2.0
//
// Regulator driver for TPS68470 PMIC
//
// Copyright (c) 2021 Red Hat Inc.
// Copyright (C) 2018 Intel Corporation
//
// Authors:
//	Hans de Goede <[email protected]>
//	Zaikuo Wang <[email protected]>
//	Tianshu Qiu <[email protected]>
//	Jian Xu Zheng <[email protected]>
//	Yuning Pu <[email protected]>
//	Rajmohan Mani <[email protected]>

#include <linux/clk.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/mfd/tps68470.h>
#include <linux/module.h>
#include <linux/platform_data/tps68470.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>

struct tps68470_regulator_data {};

#define TPS68470_REGULATOR(_name, _id, _ops, _n,			\
			   _vr, _vm, _er, _em, _lr, _nlr)

static const struct linear_range tps68470_ldo_ranges[] =;

static const struct linear_range tps68470_core_ranges[] =;

static int tps68470_regulator_enable(struct regulator_dev *rdev)
{}

static int tps68470_regulator_disable(struct regulator_dev *rdev)
{}

/* Operations permitted on DCDCx, LDO2, LDO3 and LDO4 */
static const struct regulator_ops tps68470_regulator_ops =;

static const struct regulator_ops tps68470_always_on_reg_ops =;

static const struct regulator_desc regulators[] =;

static int tps68470_regulator_probe(struct platform_device *pdev)
{}

static struct platform_driver tps68470_regulator_driver =;

/*
 * The ACPI tps68470 probe-ordering depends on the clk/gpio/regulator drivers
 * registering before the drivers for the camera-sensors which use them bind.
 * subsys_initcall() ensures this when the drivers are builtin.
 */
static int __init tps68470_regulator_init(void)
{}
subsys_initcall(tps68470_regulator_init);

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

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