#include "tcan4x5x.h"
#define TCAN4X5X_SPI_INSTRUCTION_WRITE …
#define TCAN4X5X_SPI_INSTRUCTION_READ …
#define TCAN4X5X_MAX_REGISTER …
static int tcan4x5x_regmap_gather_write(void *context,
const void *reg, size_t reg_len,
const void *val, size_t val_len)
{ … }
static int tcan4x5x_regmap_write(void *context, const void *data, size_t count)
{ … }
static int tcan4x5x_regmap_read(void *context,
const void *reg_buf, size_t reg_len,
void *val_buf, size_t val_len)
{ … }
static const struct regmap_range tcan4x5x_reg_table_wr_range[] = …;
static const struct regmap_range tcan4x5x_reg_table_rd_range[] = …;
static const struct regmap_access_table tcan4x5x_reg_table_wr = …;
static const struct regmap_access_table tcan4x5x_reg_table_rd = …;
static const struct regmap_config tcan4x5x_regmap = …;
static const struct regmap_bus tcan4x5x_bus = …;
int tcan4x5x_regmap_init(struct tcan4x5x_priv *priv)
{ … }