#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/i2c.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/mfd/core.h>
#include <linux/mfd/da9150/core.h>
#include <linux/mfd/da9150/registers.h>
static int da9150_i2c_read_device(struct i2c_client *client, u8 addr, int count,
u8 *buf)
{ … }
static int da9150_i2c_write_device(struct i2c_client *client, u8 addr,
int count, const u8 *buf)
{ … }
static bool da9150_volatile_reg(struct device *dev, unsigned int reg)
{ … }
static const struct regmap_range_cfg da9150_range_cfg[] = …;
static const struct regmap_config da9150_regmap_config = …;
void da9150_read_qif(struct da9150 *da9150, u8 addr, int count, u8 *buf)
{ … }
EXPORT_SYMBOL_GPL(…);
void da9150_write_qif(struct da9150 *da9150, u8 addr, int count, const u8 *buf)
{ … }
EXPORT_SYMBOL_GPL(…);
u8 da9150_reg_read(struct da9150 *da9150, u16 reg)
{ … }
EXPORT_SYMBOL_GPL(…);
void da9150_reg_write(struct da9150 *da9150, u16 reg, u8 val)
{ … }
EXPORT_SYMBOL_GPL(…);
void da9150_set_bits(struct da9150 *da9150, u16 reg, u8 mask, u8 val)
{ … }
EXPORT_SYMBOL_GPL(…);
void da9150_bulk_read(struct da9150 *da9150, u16 reg, int count, u8 *buf)
{ … }
EXPORT_SYMBOL_GPL(…);
void da9150_bulk_write(struct da9150 *da9150, u16 reg, int count, const u8 *buf)
{ … }
EXPORT_SYMBOL_GPL(…);
static const struct regmap_irq da9150_irqs[] = …;
static const struct regmap_irq_chip da9150_regmap_irq_chip = …;
static const struct resource da9150_gpadc_resources[] = …;
static const struct resource da9150_charger_resources[] = …;
static const struct resource da9150_fg_resources[] = …;
enum da9150_dev_idx { … };
static struct mfd_cell da9150_devs[] = …;
static int da9150_probe(struct i2c_client *client)
{ … }
static void da9150_remove(struct i2c_client *client)
{ … }
static void da9150_shutdown(struct i2c_client *client)
{ … }
static const struct i2c_device_id da9150_i2c_id[] = …;
MODULE_DEVICE_TABLE(i2c, da9150_i2c_id);
static const struct of_device_id da9150_of_match[] = …;
MODULE_DEVICE_TABLE(of, da9150_of_match);
static struct i2c_driver da9150_driver = …;
module_i2c_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;