#include <linux/bitfield.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/mfd/core.h>
#include <linux/mfd/stmfx.h>
#include <linux/module.h>
#include <linux/regulator/consumer.h>
static bool stmfx_reg_volatile(struct device *dev, unsigned int reg)
{ … }
static bool stmfx_reg_writeable(struct device *dev, unsigned int reg)
{ … }
static const struct regmap_config stmfx_regmap_config = …;
static const struct resource stmfx_pinctrl_resources[] = …;
static const struct resource stmfx_idd_resources[] = …;
static const struct resource stmfx_ts_resources[] = …;
static struct mfd_cell stmfx_cells[] = …;
static u8 stmfx_func_to_mask(u32 func)
{ … }
int stmfx_function_enable(struct stmfx *stmfx, u32 func)
{ … }
EXPORT_SYMBOL_GPL(…);
int stmfx_function_disable(struct stmfx *stmfx, u32 func)
{ … }
EXPORT_SYMBOL_GPL(…);
static void stmfx_irq_bus_lock(struct irq_data *data)
{ … }
static void stmfx_irq_bus_sync_unlock(struct irq_data *data)
{ … }
static void stmfx_irq_mask(struct irq_data *data)
{ … }
static void stmfx_irq_unmask(struct irq_data *data)
{ … }
static struct irq_chip stmfx_irq_chip = …;
static irqreturn_t stmfx_irq_handler(int irq, void *data)
{ … }
static int stmfx_irq_map(struct irq_domain *d, unsigned int virq,
irq_hw_number_t hwirq)
{ … }
static void stmfx_irq_unmap(struct irq_domain *d, unsigned int virq)
{ … }
static const struct irq_domain_ops stmfx_irq_ops = …;
static void stmfx_irq_exit(struct i2c_client *client)
{ … }
static int stmfx_irq_init(struct i2c_client *client)
{ … }
static int stmfx_chip_reset(struct stmfx *stmfx)
{ … }
static int stmfx_chip_init(struct i2c_client *client)
{ … }
static void stmfx_chip_exit(struct i2c_client *client)
{ … }
static int stmfx_probe(struct i2c_client *client)
{ … }
static void stmfx_remove(struct i2c_client *client)
{ … }
static int stmfx_suspend(struct device *dev)
{ … }
static int stmfx_resume(struct device *dev)
{ … }
static DEFINE_SIMPLE_DEV_PM_OPS(stmfx_dev_pm_ops, stmfx_suspend, stmfx_resume);
static const struct of_device_id stmfx_of_match[] = …;
MODULE_DEVICE_TABLE(of, stmfx_of_match);
static struct i2c_driver stmfx_driver = …;
module_i2c_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;