#include <linux/init.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/irqdomain.h>
#include <linux/mfd/core.h>
#include <linux/regmap.h>
#include <linux/mfd/tps65910.h>
#include <linux/of.h>
#include <linux/property.h>
static const struct resource rtc_resources[] = …;
static const struct mfd_cell tps65910s[] = …;
static const struct regmap_irq tps65911_irqs[] = …;
static const struct regmap_irq tps65910_irqs[] = …;
static const struct regmap_irq_chip tps65911_irq_chip = …;
static const struct regmap_irq_chip tps65910_irq_chip = …;
static int tps65910_irq_init(struct tps65910 *tps65910, int irq,
struct tps65910_platform_data *pdata)
{ … }
static bool is_volatile_reg(struct device *dev, unsigned int reg)
{ … }
static const struct regmap_config tps65910_regmap_config = …;
static int tps65910_ck32k_init(struct tps65910 *tps65910,
struct tps65910_board *pmic_pdata)
{ … }
static int tps65910_sleepinit(struct tps65910 *tps65910,
struct tps65910_board *pmic_pdata)
{ … }
#ifdef CONFIG_OF
static const struct of_device_id tps65910_of_match[] = …;
static struct tps65910_board *tps65910_parse_dt(struct i2c_client *client,
unsigned long *chip_id)
{ … }
#else
static inline
struct tps65910_board *tps65910_parse_dt(struct i2c_client *client,
unsigned long *chip_id)
{
return NULL;
}
#endif
static struct i2c_client *tps65910_i2c_client;
static void tps65910_power_off(void)
{ … }
static int tps65910_i2c_probe(struct i2c_client *i2c)
{ … }
static const struct i2c_device_id tps65910_i2c_id[] = …;
static struct i2c_driver tps65910_i2c_driver = …;
static int __init tps65910_i2c_init(void)
{ … }
subsys_initcall(tps65910_i2c_init);