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

// SPDX-License-Identifier: GPL-2.0
//
// Register map access API - W1 (1-Wire) support
//
// Copyright (c) 2017 Radioavionica Corporation
// Author: Alex A. Mihaylov <[email protected]>

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

#include "internal.h"

#define W1_CMD_READ_DATA
#define W1_CMD_WRITE_DATA

/*
 * 1-Wire slaves registers with addess 8 bit and data 8 bit
 */

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

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

/*
 * 1-Wire slaves registers with addess 8 bit and data 16 bit
 */

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

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

/*
 * 1-Wire slaves registers with addess 16 bit and data 16 bit
 */

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

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

/*
 * Various types of supported bus addressing
 */

static const struct regmap_bus regmap_w1_bus_a8_v8 =;

static const struct regmap_bus regmap_w1_bus_a8_v16 =;

static const struct regmap_bus regmap_w1_bus_a16_v16 =;

static const struct regmap_bus *regmap_get_w1_bus(struct device *w1_dev,
					const struct regmap_config *config)
{}

struct regmap *__regmap_init_w1(struct device *w1_dev,
				 const struct regmap_config *config,
				 struct lock_class_key *lock_key,
				 const char *lock_name)
{}
EXPORT_SYMBOL_GPL();

struct regmap *__devm_regmap_init_w1(struct device *w1_dev,
				 const struct regmap_config *config,
				 struct lock_class_key *lock_key,
				 const char *lock_name)
{}
EXPORT_SYMBOL_GPL();

MODULE_DESCRIPTION();
MODULE_LICENSE();