#include <linux/err.h>
#include <linux/mutex.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pm_domain.h>
#include <linux/pm_opp.h>
#include <linux/reboot.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/fixed.h>
#include <linux/gpio/consumer.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/regulator/of_regulator.h>
#include <linux/regulator/machine.h>
#include <linux/clk.h>
#define FV_DEF_EMERG_SHUTDWN_TMO …
struct fixed_voltage_data { … };
struct fixed_dev_type { … };
static int reg_clock_enable(struct regulator_dev *rdev)
{ … }
static int reg_clock_disable(struct regulator_dev *rdev)
{ … }
static int reg_domain_enable(struct regulator_dev *rdev)
{ … }
static int reg_domain_disable(struct regulator_dev *rdev)
{ … }
static int reg_is_enabled(struct regulator_dev *rdev)
{ … }
static irqreturn_t reg_fixed_under_voltage_irq_handler(int irq, void *data)
{ … }
static int reg_fixed_get_irqs(struct device *dev,
struct fixed_voltage_data *priv)
{ … }
static struct fixed_voltage_config *
of_get_fixed_voltage_config(struct device *dev,
const struct regulator_desc *desc)
{ … }
static const struct regulator_ops fixed_voltage_ops = …;
static const struct regulator_ops fixed_voltage_clkenabled_ops = …;
static const struct regulator_ops fixed_voltage_domain_ops = …;
static int reg_fixed_voltage_probe(struct platform_device *pdev)
{ … }
#if defined(CONFIG_OF)
static const struct fixed_dev_type fixed_voltage_data = …;
static const struct fixed_dev_type fixed_clkenable_data = …;
static const struct fixed_dev_type fixed_domain_data = …;
static const struct of_device_id fixed_of_match[] = …;
MODULE_DEVICE_TABLE(of, fixed_of_match);
#endif
static struct platform_driver regulator_fixed_voltage_driver = …;
static int __init regulator_fixed_voltage_init(void)
{ … }
subsys_initcall(regulator_fixed_voltage_init);
static void __exit regulator_fixed_voltage_exit(void)
{ … }
module_exit(regulator_fixed_voltage_exit);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;