linux/drivers/mfd/wm8400-core.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Core driver for WM8400.
 *
 * Copyright 2008 Wolfson Microelectronics PLC.
 *
 * Author: Mark Brown <[email protected]>
 */

#include <linux/init.h>
#include <linux/bug.h>
#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/kernel.h>
#include <linux/mfd/core.h>
#include <linux/mfd/wm8400-private.h>
#include <linux/mfd/wm8400-audio.h>
#include <linux/regmap.h>
#include <linux/slab.h>

static bool wm8400_volatile(struct device *dev, unsigned int reg)
{}

static int wm8400_register_codec(struct wm8400 *wm8400)
{}

/*
 * wm8400_init - Generic initialisation
 *
 * The WM8400 can be configured as either an I2C or SPI device.  Probe
 * functions for each bus set up the accessors then call into this to
 * set up the device itself.
 */
static int wm8400_init(struct wm8400 *wm8400,
		       struct wm8400_platform_data *pdata)
{}

static const struct regmap_config wm8400_regmap_config =;

/**
 * wm8400_reset_codec_reg_cache - Reset cached codec registers to
 * their default values.
 *
 * @wm8400: pointer to local driver data structure
 */
void wm8400_reset_codec_reg_cache(struct wm8400 *wm8400)
{}
EXPORT_SYMBOL_GPL();

#if IS_ENABLED(CONFIG_I2C)
static int wm8400_i2c_probe(struct i2c_client *i2c)
{}

static const struct i2c_device_id wm8400_i2c_id[] =;

static struct i2c_driver wm8400_i2c_driver =;
#endif

static int __init wm8400_driver_init(void)
{}
subsys_initcall(wm8400_driver_init);