#include <linux/extcon-provider.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/mfd/max77693-common.h>
#include <linux/mfd/max77843-private.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/workqueue.h>
#define DELAY_MS_DEFAULT …
enum max77843_muic_status { … };
struct max77843_muic_info { … };
enum max77843_muic_cable_group { … };
enum max77843_muic_adc_debounce_time { … };
enum max77843_muic_accessory_type { … };
enum max77843_muic_charger_type { … };
static const unsigned int max77843_extcon_cable[] = …;
struct max77843_muic_irq { … };
static struct max77843_muic_irq max77843_muic_irqs[] = …;
static const struct regmap_config max77843_muic_regmap_config = …;
static const struct regmap_irq max77843_muic_irq[] = …;
static const struct regmap_irq_chip max77843_muic_irq_chip = …;
static int max77843_muic_set_path(struct max77843_muic_info *info,
u8 val, bool attached, bool nobccomp)
{ … }
static void max77843_charger_set_otg_vbus(struct max77843_muic_info *info,
bool on)
{ … }
static int max77843_muic_get_cable_type(struct max77843_muic_info *info,
enum max77843_muic_cable_group group, bool *attached)
{ … }
static int max77843_muic_adc_gnd_handler(struct max77843_muic_info *info)
{ … }
static int max77843_muic_jig_handler(struct max77843_muic_info *info,
int cable_type, bool attached)
{ … }
static int max77843_muic_dock_handler(struct max77843_muic_info *info,
bool attached)
{ … }
static int max77843_muic_adc_handler(struct max77843_muic_info *info)
{ … }
static int max77843_muic_chg_handler(struct max77843_muic_info *info)
{ … }
static void max77843_muic_irq_work(struct work_struct *work)
{ … }
static irqreturn_t max77843_muic_irq_handler(int irq, void *data)
{ … }
static void max77843_muic_detect_cable_wq(struct work_struct *work)
{ … }
static int max77843_muic_set_debounce_time(struct max77843_muic_info *info,
enum max77843_muic_adc_debounce_time time)
{ … }
static int max77843_init_muic_regmap(struct max77693_dev *max77843)
{ … }
static int max77843_muic_probe(struct platform_device *pdev)
{ … }
static void max77843_muic_remove(struct platform_device *pdev)
{ … }
static const struct platform_device_id max77843_muic_id[] = …;
MODULE_DEVICE_TABLE(platform, max77843_muic_id);
static const struct of_device_id of_max77843_muic_dt_match[] = …;
MODULE_DEVICE_TABLE(of, of_max77843_muic_dt_match);
static struct platform_driver max77843_muic_driver = …;
static int __init max77843_muic_init(void)
{ … }
subsys_initcall(max77843_muic_init);
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;