linux/drivers/power/supply/tps65090-charger.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Battery charger driver for TI's tps65090
 *
 * Copyright (c) 2013, NVIDIA CORPORATION.  All rights reserved.

 */
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/freezer.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/kthread.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/slab.h>

#include <linux/mfd/tps65090.h>

#define TPS65090_CHARGER_ENABLE
#define TPS65090_VACG
#define TPS65090_NOITERM

#define POLL_INTERVAL

struct tps65090_charger {};

static enum power_supply_property tps65090_ac_props[] =;

static int tps65090_low_chrg_current(struct tps65090_charger *charger)
{}

static int tps65090_enable_charging(struct tps65090_charger *charger)
{}

static int tps65090_config_charger(struct tps65090_charger *charger)
{}

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

static irqreturn_t tps65090_charger_isr(int irq, void *dev_id)
{}

static struct tps65090_platform_data *
		tps65090_parse_dt_charger_data(struct platform_device *pdev)
{}

static int tps65090_charger_poll_task(void *data)
{}

static const struct power_supply_desc tps65090_charger_desc =;

static int tps65090_charger_probe(struct platform_device *pdev)
{}

static void tps65090_charger_remove(struct platform_device *pdev)
{}

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

static struct platform_driver tps65090_charger_driver =;
module_platform_driver();

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