diff options
author | Mark Brown <broonie@kernel.org> | 2023-03-30 03:10:23 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-04-03 14:53:43 +0300 |
commit | 05933e2d44607767ecb4937a33df4e882bdf9ad3 (patch) | |
tree | f7fd9a8f0dabe2294ec2b0b4540b393b6fad8429 /drivers/base/regmap/internal.h | |
parent | 2238959b6ad27040275439edd6893e309bc729a3 (diff) | |
download | linux-05933e2d44607767ecb4937a33df4e882bdf9ad3.tar.xz |
regmap: Factor out single value register syncing
In order to support sparse caches that don't store data in raw format
factor out the parts of the raw block sync implementation that deal with
writing a single register via _regmap_write().
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230325-regcache-maple-v3-1-23e271f93dc7@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/base/regmap/internal.h')
-rw-r--r-- | drivers/base/regmap/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h index 10aca7119d33..7b9ef43bcea6 100644 --- a/drivers/base/regmap/internal.h +++ b/drivers/base/regmap/internal.h @@ -270,6 +270,7 @@ unsigned int regcache_get_val(struct regmap *map, const void *base, 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 regcache_sync_val(struct regmap *map, unsigned int reg, unsigned int val); int _regmap_raw_write(struct regmap *map, unsigned int reg, const void *val, size_t val_len, bool noinc); |