regmap: Add support for padding between register and address
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 18 Jan 2012 10:52:25 +0000 (10:52 +0000)
committerDan Willemsen <dwillemsen@nvidia.com>
Wed, 21 Mar 2012 05:31:32 +0000 (22:31 -0700)
commit6838c4a0ea7fe67da6e8e51ef83f0bc6e5fa6a72
tree0885b03bfd938ff56cc84a8dd044f2a4635044bb
parentc16fa4f2ad19908a47c63d8fa436a1178438c7e7
regmap: Add support for padding between register and address

Some devices, especially those with high speed control interfaces, require
padding between the register and the data. Support this in the regmap API
by providing a pad_bits configuration parameter.

Only devices with integer byte counts are supported.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 82159ba8e6ef8c38e3e0452d90b4ff8da9e4b2c1)

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

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