diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-02-23 19:31:04 +0000 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-02-24 14:52:40 +0000 |
commit | ac8d91c801905a061ca883dca427a5e19602a1e7 (patch) | |
tree | 3b715a8aa18db4ed553811595c113ef95e1c5f75 /drivers/base/regmap/internal.h | |
parent | 6ff7373809a9b4eb644d83e2e299da297e1cbffa (diff) | |
download | kernel_goldelico_gta04-ac8d91c801905a061ca883dca427a5e19602a1e7.zip kernel_goldelico_gta04-ac8d91c801905a061ca883dca427a5e19602a1e7.tar.gz kernel_goldelico_gta04-ac8d91c801905a061ca883dca427a5e19602a1e7.tar.bz2 |
regmap: Supply ranges to the sync operations
In order to allow us to support partial sync operations add minimum and
maximum register arguments to the sync operation and update the rbtree
and lzo caches to use this new information. The LZO implementation is
obviously not good, we could exit the iteration earlier, but there may
be room for more wide reaching optimisation there.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base/regmap/internal.h')
-rw-r--r-- | drivers/base/regmap/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h index d141b80..9c1d62e 100644 --- a/drivers/base/regmap/internal.h +++ b/drivers/base/regmap/internal.h @@ -87,7 +87,7 @@ struct regcache_ops { int (*exit)(struct regmap *map); int (*read)(struct regmap *map, unsigned int reg, unsigned int *value); int (*write)(struct regmap *map, unsigned int reg, unsigned int value); - int (*sync)(struct regmap *map); + int (*sync)(struct regmap *map, unsigned int min, unsigned int max); }; bool regmap_writeable(struct regmap *map, unsigned int reg); |