summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-02-12 14:19:43 (GMT)
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-02-14 22:03:32 (GMT)
commit8eaeb21925563075ae036c2e5ba8d041b70e18fa (patch)
tree165075722500d35cd6c6b459d2be638e491df718 /include
parentc9157198417076c0c2664ba997e7b0217f61fcce (diff)
downloadlinux-fsl-qoriq-8eaeb21925563075ae036c2e5ba8d041b70e18fa.tar.xz
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')
-rw-r--r--include/linux/regmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index eb93921..1859793 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);