#include <linux/i2c.h>
#include <linux/reboot.h>
#include <linux/regmap.h>
#include <linux/mfd/core.h>
#include <linux/mfd/tps65219.h>
static int tps65219_warm_reset(struct tps65219 *tps)
{ … }
static int tps65219_cold_reset(struct tps65219 *tps)
{ … }
static int tps65219_soft_shutdown(struct tps65219 *tps)
{ … }
static int tps65219_power_off_handler(struct sys_off_data *data)
{ … }
static int tps65219_restart(struct tps65219 *tps, unsigned long reboot_mode)
{ … }
static int tps65219_restart_handler(struct sys_off_data *data)
{ … }
static const struct resource tps65219_pwrbutton_resources[] = …;
static const struct resource tps65219_regulator_resources[] = …;
static const struct mfd_cell tps65219_cells[] = …;
static const struct mfd_cell tps65219_pwrbutton_cell = …;
static const struct regmap_config tps65219_regmap_config = …;
static unsigned int bit0_offsets[] = …;
static unsigned int bit1_offsets[] = …;
static unsigned int bit2_offsets[] = …;
static unsigned int bit3_offsets[] = …;
static unsigned int bit4_offsets[] = …;
static unsigned int bit5_offsets[] = …;
static unsigned int bit6_offsets[] = …;
static unsigned int bit7_offsets[] = …;
static struct regmap_irq_sub_irq_map tps65219_sub_irq_offsets[] = …;
#define TPS65219_REGMAP_IRQ_REG(int_name, register_position) …
static const struct regmap_irq tps65219_irqs[] = …;
static const struct regmap_irq_chip tps65219_irq_chip = …;
static int tps65219_probe(struct i2c_client *client)
{ … }
static const struct of_device_id of_tps65219_match_table[] = …;
MODULE_DEVICE_TABLE(of, of_tps65219_match_table);
static struct i2c_driver tps65219_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;