linux/drivers/regulator/qcom-pm8008-regulator.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
 * Copyright (c) 2024 Linaro Limited
 */

#include <linux/array_size.h>
#include <linux/bits.h>
#include <linux/device.h>
#include <linux/math.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/regulator/driver.h>

#include <asm/byteorder.h>

#define DEFAULT_VOLTAGE_STEPPER_RATE

#define LDO_STEPPER_CTL_REG
#define STEP_RATE_MASK

#define LDO_VSET_LB_REG

#define LDO_ENABLE_REG
#define ENABLE_BIT

struct pm8008_regulator {};

struct pm8008_regulator_data {};

static const struct linear_range nldo_ranges[] =;

static const struct linear_range pldo_ranges[] =;

static const struct pm8008_regulator_data pm8008_reg_data[] =;

static int pm8008_regulator_set_voltage_sel(struct regulator_dev *rdev, unsigned int sel)
{}

static int pm8008_regulator_get_voltage_sel(struct regulator_dev *rdev)
{}

static const struct regulator_ops pm8008_regulator_ops =;

static int pm8008_regulator_probe(struct platform_device *pdev)
{}

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

static struct platform_driver pm8008_regulator_driver =;
module_platform_driver();

MODULE_DESCRIPTION();
MODULE_LICENSE();