linux/drivers/soc/mediatek/mtk-regulator-coupler.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Voltage regulators coupler for MediaTek SoCs
 *
 * Copyright (C) 2022 Collabora, Ltd.
 * Author: AngeloGioacchino Del Regno <[email protected]>
 */

#define pr_fmt(fmt)

#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/of.h>
#include <linux/regulator/coupler.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/suspend.h>

#define to_mediatek_coupler(x)

struct mediatek_regulator_coupler {};

/*
 * We currently support only couples of not more than two vregs and
 * modify the vsram voltage only when changing voltage of vgpu.
 *
 * This function is limited to the GPU<->SRAM voltages relationships.
 */
static int mediatek_regulator_balance_voltage(struct regulator_coupler *coupler,
					      struct regulator_dev *rdev,
					      suspend_state_t state)
{}

static int mediatek_regulator_attach(struct regulator_coupler *coupler,
				     struct regulator_dev *rdev)
{}

static int mediatek_regulator_detach(struct regulator_coupler *coupler,
				     struct regulator_dev *rdev)
{}

static struct mediatek_regulator_coupler mediatek_coupler =;

static int mediatek_regulator_coupler_init(void)
{}
arch_initcall(mediatek_regulator_coupler_init);

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