linux/drivers/misc/qcom-coincell.c

// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015, Sony Mobile Communications Inc.
 */

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/regmap.h>
#include <linux/platform_device.h>

struct qcom_coincell {};

#define QCOM_COINCELL_REG_RSET
#define QCOM_COINCELL_REG_VSET
#define QCOM_COINCELL_REG_ENABLE

#define QCOM_COINCELL_ENABLE

static const int qcom_rset_map[] =;
static const int qcom_vset_map[] =;
/* NOTE: for pm8921 and others, voltage of 2500 is 16 (10000b), not 0 */

/* if enable==0, rset and vset are ignored */
static int qcom_coincell_chgr_config(struct qcom_coincell *chgr, int rset,
				     int vset, bool enable)
{}

static int qcom_coincell_probe(struct platform_device *pdev)
{}

static const struct of_device_id qcom_coincell_match_table[] =;

MODULE_DEVICE_TABLE(of, qcom_coincell_match_table);

static struct platform_driver qcom_coincell_driver =;

module_platform_driver();

MODULE_DESCRIPTION();
MODULE_LICENSE();