linux/drivers/regulator/max8952.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * max8952.c - Voltage and current regulation for the Maxim 8952
 *
 * Copyright (C) 2010 Samsung Electronics
 * MyungJoo Ham <[email protected]>
 */

#include <linux/module.h>
#include <linux/init.h>
#include <linux/i2c.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/max8952.h>
#include <linux/gpio/consumer.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/regulator/of_regulator.h>
#include <linux/slab.h>

/* Registers */
enum {};

struct max8952_data {};

static int max8952_read_reg(struct max8952_data *max8952, u8 reg)
{}

static int max8952_write_reg(struct max8952_data *max8952,
		u8 reg, u8 value)
{}

static int max8952_list_voltage(struct regulator_dev *rdev,
		unsigned int selector)
{}

static int max8952_get_voltage_sel(struct regulator_dev *rdev)
{}

static int max8952_set_voltage_sel(struct regulator_dev *rdev,
				   unsigned selector)
{}

static const struct regulator_ops max8952_ops =;

static const struct regulator_desc regulator =;

#ifdef CONFIG_OF
static const struct of_device_id max8952_dt_match[] =;
MODULE_DEVICE_TABLE(of, max8952_dt_match);

static struct max8952_platform_data *max8952_parse_dt(struct device *dev)
{}
#else
static struct max8952_platform_data *max8952_parse_dt(struct device *dev)
{
	return NULL;
}
#endif

static int max8952_pmic_probe(struct i2c_client *client)
{}

static const struct i2c_device_id max8952_ids[] =;
MODULE_DEVICE_TABLE(i2c, max8952_ids);

static struct i2c_driver max8952_pmic_driver =;

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

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

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