#include <linux/extcon-provider.h>
#include <linux/gpio/consumer.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>
struct max3355_data { … };
static const unsigned int max3355_cable[] = …;
static irqreturn_t max3355_id_irq(int irq, void *dev_id)
{ … }
static int max3355_probe(struct platform_device *pdev)
{ … }
static void max3355_remove(struct platform_device *pdev)
{ … }
static const struct of_device_id max3355_match_table[] = …;
MODULE_DEVICE_TABLE(of, max3355_match_table);
static struct platform_driver max3355_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;