#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/i2c.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/irqdomain.h>
#include <linux/platform_device.h>
#include <linux/regulator/machine.h>
#include <linux/mfd/core.h>
#include <linux/mfd/max8925.h>
#include <linux/of.h>
static const struct resource bk_resources[] = …;
static struct mfd_cell bk_devs[] = …;
static const struct resource touch_resources[] = …;
static const struct mfd_cell touch_devs[] = …;
static const struct resource power_supply_resources[] = …;
static const struct mfd_cell power_devs[] = …;
static const struct resource rtc_resources[] = …;
static const struct mfd_cell rtc_devs[] = …;
static const struct resource onkey_resources[] = …;
static const struct mfd_cell onkey_devs[] = …;
static const struct resource sd1_resources[] = …;
static const struct resource sd2_resources[] = …;
static const struct resource sd3_resources[] = …;
static const struct resource ldo1_resources[] = …;
static const struct resource ldo2_resources[] = …;
static const struct resource ldo3_resources[] = …;
static const struct resource ldo4_resources[] = …;
static const struct resource ldo5_resources[] = …;
static const struct resource ldo6_resources[] = …;
static const struct resource ldo7_resources[] = …;
static const struct resource ldo8_resources[] = …;
static const struct resource ldo9_resources[] = …;
static const struct resource ldo10_resources[] = …;
static const struct resource ldo11_resources[] = …;
static const struct resource ldo12_resources[] = …;
static const struct resource ldo13_resources[] = …;
static const struct resource ldo14_resources[] = …;
static const struct resource ldo15_resources[] = …;
static const struct resource ldo16_resources[] = …;
static const struct resource ldo17_resources[] = …;
static const struct resource ldo18_resources[] = …;
static const struct resource ldo19_resources[] = …;
static const struct resource ldo20_resources[] = …;
static struct mfd_cell reg_devs[] = …;
enum { … };
struct max8925_irq_data { … };
static struct max8925_irq_data max8925_irqs[] = …;
static irqreturn_t max8925_irq(int irq, void *data)
{ … }
static irqreturn_t max8925_tsc_irq(int irq, void *data)
{ … }
static void max8925_irq_lock(struct irq_data *data)
{ … }
static void max8925_irq_sync_unlock(struct irq_data *data)
{ … }
static void max8925_irq_enable(struct irq_data *data)
{ … }
static void max8925_irq_disable(struct irq_data *data)
{ … }
static struct irq_chip max8925_irq_chip = …;
static int max8925_irq_domain_map(struct irq_domain *d, unsigned int virq,
irq_hw_number_t hw)
{ … }
static const struct irq_domain_ops max8925_irq_domain_ops = …;
static int max8925_irq_init(struct max8925_chip *chip, int irq,
struct max8925_platform_data *pdata)
{ … }
static void init_regulator(struct max8925_chip *chip,
struct max8925_platform_data *pdata)
{ … }
int max8925_device_init(struct max8925_chip *chip,
struct max8925_platform_data *pdata)
{ … }
void max8925_device_exit(struct max8925_chip *chip)
{ … }