regmap: add regmap_bulk_write() for register write
authorLaxman Dewangan <ldewangan@nvidia.com>
Sun, 12 Feb 2012 14:19:43 +0000 (19:19 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Wed, 21 Mar 2012 05:31:35 +0000 (22:31 -0700)
commitfeb340b2e00d50f88dc3da3fab9501787670cbee
tree2243f531861dbe98c4f853385e3d4abf3a7a7154
parent5bf934762076bc8414374bc71fc10ef87b5488c6
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>
(cherry picked from commit 8eaeb21925563075ae036c2e5ba8d041b70e18fa)

Change-Id: Id97fbcfa0ed7d00d97dc3ab89fdb2b025850c9b1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/87591

Rebase-Id: R5a91fc79b5e5e36c2c5d41fc445f2f12140d605d
drivers/base/regmap/regmap.c
include/linux/regmap.h