diff options
author | Mark Brown <broonie@linaro.org> | 2013-10-09 12:28:52 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-09 14:05:24 +0100 |
commit | 0a8198094da895c8d5db95812fe9de7027d808e4 (patch) | |
tree | d9da7fa270e1e618097353eaf1b2fb97239d9fd7 /drivers/base/regmap/internal.h | |
parent | 651e013e3ce6c0646c39a07e22bebad75a207209 (diff) |
regmap: Simplify the initiation of async I/O
Rather than passing a flag around through the entire call stack store it
in the regmap struct and read it when required. This minimises the
visibility of the feature through the API, minimising the code updates
needed to use it more widely.
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/base/regmap/internal.h')
-rw-r--r-- | drivers/base/regmap/internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h index 793ebe207c8a..6873b4ce03f9 100644 --- a/drivers/base/regmap/internal.h +++ b/drivers/base/regmap/internal.h @@ -63,6 +63,7 @@ struct regmap { void *bus_context; const char *name; + bool async; spinlock_t async_lock; wait_queue_head_t async_waitq; struct list_head async_list; @@ -218,7 +219,7 @@ bool regcache_set_val(struct regmap *map, void *base, unsigned int idx, 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); + const void *val, size_t val_len); void regmap_async_complete_cb(struct regmap_async *async, int ret); |