#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/bitops.h>
#include <linux/err.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/regulator/of_regulator.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <sound/soc.h>
#include <linux/mfd/arizona/core.h>
#include <linux/mfd/arizona/pdata.h>
#include <linux/mfd/arizona/registers.h>
#include <linux/mfd/madera/core.h>
#include <linux/mfd/madera/pdata.h>
#include <linux/mfd/madera/registers.h>
#include <linux/regulator/arizona-micsupp.h>
struct arizona_micsupp { … };
static void arizona_micsupp_check_cp(struct work_struct *work)
{ … }
static int arizona_micsupp_enable(struct regulator_dev *rdev)
{ … }
static int arizona_micsupp_disable(struct regulator_dev *rdev)
{ … }
static int arizona_micsupp_set_bypass(struct regulator_dev *rdev, bool ena)
{ … }
static const struct regulator_ops arizona_micsupp_ops = …;
static const struct linear_range arizona_micsupp_ranges[] = …;
static const struct regulator_desc arizona_micsupp = …;
static const struct linear_range arizona_micsupp_ext_ranges[] = …;
static const struct regulator_desc arizona_micsupp_ext = …;
static const struct regulator_init_data arizona_micsupp_default = …;
static const struct regulator_init_data arizona_micsupp_ext_default = …;
static const struct regulator_desc madera_micsupp = …;
static int arizona_micsupp_of_get_pdata(struct arizona_micsupp_pdata *pdata,
struct regulator_config *config,
const struct regulator_desc *desc)
{ … }
static int arizona_micsupp_common_init(struct platform_device *pdev,
struct arizona_micsupp *micsupp,
const struct regulator_desc *desc,
struct arizona_micsupp_pdata *pdata)
{ … }
static int arizona_micsupp_probe(struct platform_device *pdev)
{ … }
static int madera_micsupp_probe(struct platform_device *pdev)
{ … }
static struct platform_driver arizona_micsupp_driver = …;
static struct platform_driver madera_micsupp_driver = …;
static struct platform_driver * const arizona_micsupp_drivers[] = …;
static int __init arizona_micsupp_init(void)
{ … }
module_init(…) …;
static void __exit arizona_micsupp_exit(void)
{ … }
module_exit(arizona_micsupp_exit);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;
MODULE_ALIAS(…) …;