linux/drivers/mfd/88pm80x.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * I2C driver for Marvell 88PM80x
 *
 * Copyright (C) 2012 Marvell International Ltd.
 * Haojian Zhuang <[email protected]>
 * Joseph(Yossi) Hanin <[email protected]>
 * Qiao Zhou <[email protected]>
 */
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/mfd/88pm80x.h>
#include <linux/slab.h>
#include <linux/uaccess.h>
#include <linux/err.h>

/* 88pm80x chips have same definition for chip id register. */
#define PM80X_CHIP_ID
#define PM80X_CHIP_ID_NUM(x)
#define PM80X_CHIP_ID_REVISION(x)

struct pm80x_chip_mapping {};

static struct pm80x_chip_mapping chip_mapping[] =;

/*
 * workaround: some registers needed by pm805 are defined in pm800, so
 * need to use this global variable to maintain the relation between
 * pm800 and pm805. would remove it after HW chip fixes the issue.
 */
static struct pm80x_chip *g_pm80x_chip;

const struct regmap_config pm80x_regmap_config =;
EXPORT_SYMBOL_GPL();


int pm80x_init(struct i2c_client *client)
{}
EXPORT_SYMBOL_GPL();

int pm80x_deinit(void)
{}
EXPORT_SYMBOL_GPL();

static int pm80x_suspend(struct device *dev)
{}

static int pm80x_resume(struct device *dev)
{}

EXPORT_GPL_SIMPLE_DEV_PM_OPS();

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