linux/drivers/power/supply/tps65217_charger.c

// SPDX-License-Identifier: GPL-2.0
// Battery charger driver for TI's tps65217
//
// Copyright (C) 2015 Collabora Ltd.
// Author: Enric Balletbo i Serra <[email protected]>

/*
 * Battery charger driver for TI's tps65217
 */
#include <linux/kernel.h>
#include <linux/kthread.h>
#include <linux/device.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/of.h>
#include <linux/power_supply.h>

#include <linux/mfd/core.h>
#include <linux/mfd/tps65217.h>

#define CHARGER_STATUS_PRESENT
#define NUM_CHARGER_IRQS
#define POLL_INTERVAL

struct tps65217_charger {};

static enum power_supply_property tps65217_charger_props[] =;

static int tps65217_config_charger(struct tps65217_charger *charger)
{}

static int tps65217_enable_charging(struct tps65217_charger *charger)
{}

static int tps65217_charger_get_property(struct power_supply *psy,
					 enum power_supply_property psp,
					 union power_supply_propval *val)
{}

static irqreturn_t tps65217_charger_irq(int irq, void *dev)
{}

static int tps65217_charger_poll_task(void *data)
{}

static const struct power_supply_desc tps65217_charger_desc =;

static int tps65217_charger_probe(struct platform_device *pdev)
{}

static void tps65217_charger_remove(struct platform_device *pdev)
{}

static const struct of_device_id tps65217_charger_match_table[] =;
MODULE_DEVICE_TABLE(of, tps65217_charger_match_table);

static struct platform_driver tps65217_charger_driver =;
module_platform_driver();

MODULE_LICENSE();
MODULE_AUTHOR();
MODULE_DESCRIPTION();