#include <linux/gpio/consumer.h>
#include <linux/i2c.h>
#include <linux/kernel.h>
#include <linux/mfd/core.h>
#include <linux/module.h>
#include <linux/regmap.h>
#define RT4831_REG_REVISION …
#define RT4831_REG_ENABLE …
#define RT4831_REG_I2CPROT …
#define RICHTEK_VENDOR_ID …
#define RT4831_VID_MASK …
#define RT4831_RESET_MASK …
#define RT4831_I2CSAFETMR_MASK …
static const struct mfd_cell rt4831_subdevs[] = …;
static bool rt4831_is_accessible_reg(struct device *dev, unsigned int reg)
{ … }
static const struct regmap_config rt4831_regmap_config = …;
static int rt4831_probe(struct i2c_client *client)
{ … }
static void rt4831_remove(struct i2c_client *client)
{ … }
static const struct of_device_id __maybe_unused rt4831_of_match[] = …;
MODULE_DEVICE_TABLE(of, rt4831_of_match);
static struct i2c_driver rt4831_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;