linux/drivers/power/supply/rt5033_charger.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Battery charger driver for RT5033
 *
 * Copyright (C) 2014 Samsung Electronics, Co., Ltd.
 * Author: Beomho Seo <[email protected]>
 */

#include <linux/devm-helpers.h>
#include <linux/extcon.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/regmap.h>
#include <linux/mfd/rt5033-private.h>

struct rt5033_charger_data {};

struct rt5033_charger {};

static int rt5033_get_charger_state(struct rt5033_charger *charger)
{}

static int rt5033_get_charger_type(struct rt5033_charger *charger)
{}

static int rt5033_get_charger_current_limit(struct rt5033_charger *charger)
{}

static int rt5033_get_charger_const_voltage(struct rt5033_charger *charger)
{}

static inline int rt5033_init_const_charge(struct rt5033_charger *charger)
{}

static inline int rt5033_init_fast_charge(struct rt5033_charger *charger)
{}

static inline int rt5033_init_pre_charge(struct rt5033_charger *charger)
{}

static int rt5033_charger_reg_init(struct rt5033_charger *charger)
{}

static int rt5033_charger_set_otg(struct rt5033_charger *charger)
{}

static int rt5033_charger_unset_otg(struct rt5033_charger *charger)
{}

static int rt5033_charger_set_charging(struct rt5033_charger *charger)
{}

static int rt5033_charger_set_mivr(struct rt5033_charger *charger)
{}

static int rt5033_charger_set_disconnect(struct rt5033_charger *charger)
{}

static enum power_supply_property rt5033_charger_props[] =;

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

static int rt5033_charger_dt_init(struct rt5033_charger *charger)
{}

static void rt5033_charger_extcon_work(struct work_struct *work)
{}

static int rt5033_charger_extcon_notifier(struct notifier_block *nb,
					  unsigned long event, void *param)
{}

static const struct power_supply_desc rt5033_charger_desc =;

static int rt5033_charger_probe(struct platform_device *pdev)
{}

static const struct platform_device_id rt5033_charger_id[] =;
MODULE_DEVICE_TABLE(platform, rt5033_charger_id);

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

static struct platform_driver rt5033_charger_driver =;
module_platform_driver();

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