linux/drivers/power/supply/rt5033_battery.c

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

#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/regmap.h>
#include <linux/mfd/rt5033-private.h>

struct rt5033_battery {};

static int rt5033_battery_get_status(struct i2c_client *client)
{}

static int rt5033_battery_get_capacity(struct i2c_client *client)
{}

static int rt5033_battery_get_present(struct i2c_client *client)
{}

static int rt5033_battery_get_watt_prop(struct i2c_client *client,
		enum power_supply_property psp)
{}

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

static enum power_supply_property rt5033_battery_props[] =;

static const struct regmap_config rt5033_battery_regmap_config =;

static const struct power_supply_desc rt5033_battery_desc =;

static int rt5033_battery_probe(struct i2c_client *client)
{}

static const struct i2c_device_id rt5033_battery_id[] =;
MODULE_DEVICE_TABLE(i2c, rt5033_battery_id);

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

static struct i2c_driver rt5033_battery_driver =;
module_i2c_driver();

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