#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/of.h>
#include <linux/regmap.h>
#include <linux/irq.h>
#include <linux/mfd/core.h>
#include <linux/i2c.h>
#include <linux/mfd/da9062/core.h>
#include <linux/mfd/da9062/registers.h>
#include <linux/regulator/of_regulator.h>
#define DA9062_REG_EVENT_A_OFFSET …
#define DA9062_REG_EVENT_B_OFFSET …
#define DA9062_REG_EVENT_C_OFFSET …
#define DA9062_IRQ_LOW …
#define DA9062_IRQ_HIGH …
static struct regmap_irq da9061_irqs[] = …;
static struct regmap_irq_chip da9061_irq_chip = …;
static struct regmap_irq da9062_irqs[] = …;
static struct regmap_irq_chip da9062_irq_chip = …;
static const struct resource da9061_core_resources[] = …;
static const struct resource da9061_regulators_resources[] = …;
static const struct resource da9061_thermal_resources[] = …;
static const struct resource da9061_wdt_resources[] = …;
static const struct resource da9061_onkey_resources[] = …;
static const struct mfd_cell da9061_devs_irq[] = …;
static const struct mfd_cell da9061_devs_noirq[] = …;
static const struct resource da9062_core_resources[] = …;
static const struct resource da9062_regulators_resources[] = …;
static const struct resource da9062_thermal_resources[] = …;
static const struct resource da9062_wdt_resources[] = …;
static const struct resource da9062_rtc_resources[] = …;
static const struct resource da9062_onkey_resources[] = …;
static const struct resource da9062_gpio_resources[] = …;
static const struct mfd_cell da9062_devs_irq[] = …;
static const struct mfd_cell da9062_devs_noirq[] = …;
static int da9062_clear_fault_log(struct da9062 *chip)
{ … }
static int da9062_get_device_type(struct da9062 *chip)
{ … }
static u32 da9062_configure_irq_type(struct da9062 *chip, int irq, u32 *trigger)
{ … }
static const struct regmap_range da9061_aa_readable_ranges[] = …;
static const struct regmap_range da9061_aa_writeable_ranges[] = …;
static const struct regmap_range da9061_aa_volatile_ranges[] = …;
static const struct regmap_access_table da9061_aa_readable_table = …;
static const struct regmap_access_table da9061_aa_writeable_table = …;
static const struct regmap_access_table da9061_aa_volatile_table = …;
static const struct regmap_range_cfg da9061_range_cfg[] = …;
static struct regmap_config da9061_regmap_config = …;
static const struct regmap_range da9062_aa_readable_ranges[] = …;
static const struct regmap_range da9062_aa_writeable_ranges[] = …;
static const struct regmap_range da9062_aa_volatile_ranges[] = …;
static const struct regmap_access_table da9062_aa_readable_table = …;
static const struct regmap_access_table da9062_aa_writeable_table = …;
static const struct regmap_access_table da9062_aa_volatile_table = …;
static const struct regmap_range_cfg da9062_range_cfg[] = …;
static struct regmap_config da9062_regmap_config = …;
static int da9062_i2c_probe(struct i2c_client *i2c)
{ … }
static void da9062_i2c_remove(struct i2c_client *i2c)
{ … }
static const struct of_device_id da9062_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, da9062_dt_ids);
static const struct i2c_device_id da9062_i2c_id[] = …;
MODULE_DEVICE_TABLE(i2c, da9062_i2c_id);
static struct i2c_driver da9062_i2c_driver = …;
module_i2c_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;