Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 584de329 authored by Mark Brown's avatar Mark Brown
Browse files

regmap: core: Make raw write available to regcache



This allows the cache to sync values directly to the device when stored
in native format and also allows asynchronous I/O.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent f1b5c5c3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -195,6 +195,9 @@ bool regcache_set_val(struct regmap *map, void *base, unsigned int idx,
		      unsigned int val);
int regcache_lookup_reg(struct regmap *map, unsigned int reg);

int _regmap_raw_write(struct regmap *map, unsigned int reg,
		      const void *val, size_t val_len, bool async);

void regmap_async_complete_cb(struct regmap_async *async, int ret);

extern struct regcache_ops regcache_rbtree_ops;
+2 −2
Original line number Diff line number Diff line
@@ -937,7 +937,7 @@ static int _regmap_select_page(struct regmap *map, unsigned int *reg,
	return 0;
}

static int _regmap_raw_write(struct regmap *map, unsigned int reg,
int _regmap_raw_write(struct regmap *map, unsigned int reg,
		      const void *val, size_t val_len, bool async)
{
	struct regmap_range_node *range;