#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[] = …;
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(…) …;