linux/drivers/regulator/pv88060-regulator.c

// SPDX-License-Identifier: GPL-2.0+
//
// pv88060-regulator.c - Regulator device driver for PV88060
// Copyright (C) 2015  Powerventure Semiconductor Ltd.

#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/regmap.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/regulator/of_regulator.h>
#include "pv88060-regulator.h"

#define PV88060_MAX_REGULATORS

/* PV88060 REGULATOR IDs */
enum {};

struct pv88060_regulator {};

struct pv88060 {};

static const struct regmap_config pv88060_regmap_config =;

/* Current limits array (in uA) for BUCK1
 * Entry indexes corresponds to register values.
 */

static const unsigned int pv88060_buck1_limits[] =;

static unsigned int pv88060_buck_get_mode(struct regulator_dev *rdev)
{}

static int pv88060_buck_set_mode(struct regulator_dev *rdev,
					unsigned int mode)
{}

static const struct regulator_ops pv88060_buck_ops =;

static const struct regulator_ops pv88060_ldo_ops =;

static const struct regulator_ops pv88060_sw_ops =;

#define PV88060_BUCK(chip, regl_name, min, step, max, limits_array)

#define PV88060_LDO(chip, regl_name, min, step, max)

#define PV88060_SW(chip, regl_name, max)

static const struct pv88060_regulator pv88060_regulator_info[] =;

static irqreturn_t pv88060_irq_handler(int irq, void *data)
{}

/*
 * I2C driver interface functions
 */
static int pv88060_i2c_probe(struct i2c_client *i2c)
{}

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

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

static struct i2c_driver pv88060_regulator_driver =;

module_i2c_driver();

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