summaryrefslogtreecommitdiffstats
path: root/drivers/base/regmap/internal.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-13 19:19:34 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-26 19:17:32 +0000
commit584de329ca43cc6d73eb74885e1d5d9fc0549423 (patch)
tree58e6e6d728d5c0f0d43a33d48914c9032bebf971 /drivers/base/regmap/internal.h
parentf1b5c5c3423b59056d3ca956d2e795b7927d6008 (diff)
downloadop-kernel-dev-584de329ca43cc6d73eb74885e1d5d9fc0549423.zip
op-kernel-dev-584de329ca43cc6d73eb74885e1d5d9fc0549423.tar.gz
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: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base/regmap/internal.h')
-rw-r--r--drivers/base/regmap/internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h
index 2b5851d..6d40935 100644
--- a/drivers/base/regmap/internal.h
+++ b/drivers/base/regmap/internal.h
@@ -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;
OpenPOWER on IntegriCloud