diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-02-12 19:49:43 +0530 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-02-14 14:03:32 -0800 |
commit | 8eaeb21925563075ae036c2e5ba8d041b70e18fa (patch) | |
tree | 165075722500d35cd6c6b459d2be638e491df718 /include/linux/regmap.h | |
parent | c9157198417076c0c2664ba997e7b0217f61fcce (diff) | |
download | blackbird-op-linux-8eaeb21925563075ae036c2e5ba8d041b70e18fa.tar.gz blackbird-op-linux-8eaeb21925563075ae036c2e5ba8d041b70e18fa.zip |
regmap: add regmap_bulk_write() for register write
The bulk_write() supports the data transfer to multi
register which takes the data into cpu_endianness format
and does formatting of data to device format before
sending to device.
The transfer can be completed in single transfer or multiple
transfer based on data formatting.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r-- | include/linux/regmap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index eb93921cdd30..1859793bc4c0 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -133,6 +133,8 @@ int regmap_reinit_cache(struct regmap *map, int regmap_write(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); +int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val, + size_t val_count); int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val); int regmap_raw_read(struct regmap *map, unsigned int reg, void *val, size_t val_len); |