#include <linux/device.h>
#include <linux/gpio/consumer.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/slab.h>
#include <linux/of.h>
struct lt3651_charger { … };
static irqreturn_t lt3651_charger_irq(int irq, void *devid)
{ … }
static inline struct lt3651_charger *psy_to_lt3651_charger(
struct power_supply *psy)
{ … }
static int lt3651_charger_get_property(struct power_supply *psy,
enum power_supply_property psp, union power_supply_propval *val)
{ … }
static enum power_supply_property lt3651_charger_properties[] = …;
static int lt3651_charger_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id lt3651_charger_match[] = …;
MODULE_DEVICE_TABLE(of, lt3651_charger_match);
static struct platform_driver lt3651_charger_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;