#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/mfd/core.h>
#include <linux/mfd/rc5t583.h>
#include <linux/regmap.h>
#define RICOH_ONOFFSEL_REG …
#define RICOH_SWCTL_REG …
struct deepsleep_control_data { … };
#define DEEPSLEEP_INIT(_id, _reg, _pos) …
static struct deepsleep_control_data deepsleep_data[] = …;
#define EXT_PWR_REQ …
static const struct mfd_cell rc5t583_subdevs[] = …;
static int __rc5t583_set_ext_pwrreq1_control(struct device *dev,
int id, int ext_pwr, int slots)
{ … }
static int __rc5t583_set_ext_pwrreq2_control(struct device *dev,
int id, int ext_pwr)
{ … }
int rc5t583_ext_power_req_config(struct device *dev, int ds_id,
int ext_pwr_req, int deepsleep_slot_nr)
{ … }
EXPORT_SYMBOL(…);
static int rc5t583_clear_ext_power_req(struct rc5t583 *rc5t583,
struct rc5t583_platform_data *pdata)
{ … }
static bool volatile_reg(struct device *dev, unsigned int reg)
{ … }
static const struct regmap_config rc5t583_regmap_config = …;
static int rc5t583_i2c_probe(struct i2c_client *i2c)
{ … }
static const struct i2c_device_id rc5t583_i2c_id[] = …;
static struct i2c_driver rc5t583_i2c_driver = …;
static int __init rc5t583_i2c_init(void)
{ … }
subsys_initcall(rc5t583_i2c_init);