#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/mfd/rc5t583.h>
struct rc5t583_regulator_info { … };
static int rc5t583_regulator_enable_time(struct regulator_dev *rdev)
{ … }
static const struct regulator_ops rc5t583_ops = …;
#define RC5T583_REG(_id, _en_reg, _en_bit, _disc_reg, _disc_bit, \
_vout_mask, _min_mv, _max_mv, _step_uV, _enable_mv) …
static struct rc5t583_regulator_info rc5t583_reg_info[RC5T583_REGULATOR_MAX] = …;
static int rc5t583_regulator_probe(struct platform_device *pdev)
{ … }
static struct platform_driver rc5t583_regulator_driver = …;
static int __init rc5t583_regulator_init(void)
{ … }
subsys_initcall(rc5t583_regulator_init);
static void __exit rc5t583_regulator_exit(void)
{ … }
module_exit(rc5t583_regulator_exit);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_ALIAS(…) …;
MODULE_LICENSE(…) …;