linux/drivers/regulator/virtual.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * reg-virtual-consumer.c
 *
 * Copyright 2008 Wolfson Microelectronics PLC.
 *
 * Author: Mark Brown <[email protected]>
 */

#include <linux/err.h>
#include <linux/mutex.h>
#include <linux/platform_device.h>
#include <linux/regulator/consumer.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/of.h>

struct virtual_consumer_data {};

static void update_voltage_constraints(struct device *dev,
				       struct virtual_consumer_data *data)
{}

static void update_current_limit_constraints(struct device *dev,
					  struct virtual_consumer_data *data)
{}

static ssize_t show_min_uV(struct device *dev,
			   struct device_attribute *attr, char *buf)
{}

static ssize_t set_min_uV(struct device *dev, struct device_attribute *attr,
			  const char *buf, size_t count)
{}

static ssize_t show_max_uV(struct device *dev,
			   struct device_attribute *attr, char *buf)
{}

static ssize_t set_max_uV(struct device *dev, struct device_attribute *attr,
			  const char *buf, size_t count)
{}

static ssize_t show_min_uA(struct device *dev,
			   struct device_attribute *attr, char *buf)
{}

static ssize_t set_min_uA(struct device *dev, struct device_attribute *attr,
			  const char *buf, size_t count)
{}

static ssize_t show_max_uA(struct device *dev,
			   struct device_attribute *attr, char *buf)
{}

static ssize_t set_max_uA(struct device *dev, struct device_attribute *attr,
			  const char *buf, size_t count)
{}

static ssize_t show_mode(struct device *dev,
			 struct device_attribute *attr, char *buf)
{}

static ssize_t set_mode(struct device *dev, struct device_attribute *attr,
			const char *buf, size_t count)
{}

static DEVICE_ATTR(min_microvolts, 0664, show_min_uV, set_min_uV);
static DEVICE_ATTR(max_microvolts, 0664, show_max_uV, set_max_uV);
static DEVICE_ATTR(min_microamps, 0664, show_min_uA, set_min_uA);
static DEVICE_ATTR(max_microamps, 0664, show_max_uA, set_max_uA);
static DEVICE_ATTR(mode, 0664, show_mode, set_mode);

static struct attribute *regulator_virtual_attributes[] =;

static const struct attribute_group regulator_virtual_attr_group =;

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

static int regulator_virtual_probe(struct platform_device *pdev)
{}

static void regulator_virtual_remove(struct platform_device *pdev)
{}

static struct platform_driver regulator_virtual_consumer_driver =;

module_platform_driver();

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