linux/drivers/base/regmap/regmap-i2c.c

// SPDX-License-Identifier: GPL-2.0
//
// Register map access API - I2C support
//
// Copyright 2011 Wolfson Microelectronics plc
//
// Author: Mark Brown <[email protected]>

#include <linux/regmap.h>
#include <linux/i2c.h>
#include <linux/module.h>

#include "internal.h"

static int regmap_smbus_byte_reg_read(void *context, unsigned int reg,
				      unsigned int *val)
{}

static int regmap_smbus_byte_reg_write(void *context, unsigned int reg,
				       unsigned int val)
{}

static const struct regmap_bus regmap_smbus_byte =;

static int regmap_smbus_word_reg_read(void *context, unsigned int reg,
				      unsigned int *val)
{}

static int regmap_smbus_word_reg_write(void *context, unsigned int reg,
				       unsigned int val)
{}

static const struct regmap_bus regmap_smbus_word =;

static int regmap_smbus_word_read_swapped(void *context, unsigned int reg,
					  unsigned int *val)
{}

static int regmap_smbus_word_write_swapped(void *context, unsigned int reg,
					   unsigned int val)
{}

static const struct regmap_bus regmap_smbus_word_swapped =;

static int regmap_i2c_write(void *context, const void *data, size_t count)
{}

static int regmap_i2c_gather_write(void *context,
				   const void *reg, size_t reg_size,
				   const void *val, size_t val_size)
{}

static int regmap_i2c_read(void *context,
			   const void *reg, size_t reg_size,
			   void *val, size_t val_size)
{}

static const struct regmap_bus regmap_i2c =;

static int regmap_i2c_smbus_i2c_write(void *context, const void *data,
				      size_t count)
{}

static int regmap_i2c_smbus_i2c_read(void *context, const void *reg,
				     size_t reg_size, void *val,
				     size_t val_size)
{}

static const struct regmap_bus regmap_i2c_smbus_i2c_block =;

static int regmap_i2c_smbus_i2c_write_reg16(void *context, const void *data,
				      size_t count)
{}

static int regmap_i2c_smbus_i2c_read_reg16(void *context, const void *reg,
				     size_t reg_size, void *val,
				     size_t val_size)
{}

static const struct regmap_bus regmap_i2c_smbus_i2c_block_reg16 =;

static const struct regmap_bus *regmap_get_i2c_bus(struct i2c_client *i2c,
					const struct regmap_config *config)
{}

struct regmap *__regmap_init_i2c(struct i2c_client *i2c,
				 const struct regmap_config *config,
				 struct lock_class_key *lock_key,
				 const char *lock_name)
{}
EXPORT_SYMBOL_GPL();

struct regmap *__devm_regmap_init_i2c(struct i2c_client *i2c,
				      const struct regmap_config *config,
				      struct lock_class_key *lock_key,
				      const char *lock_name)
{}
EXPORT_SYMBOL_GPL();

MODULE_DESCRIPTION();
MODULE_LICENSE();