regmap: Use reg_sequence for multi_reg_write / register_patch
authorNariman Poushin <nariman@opensource.wolfsonmicro.com>
Thu, 16 Jul 2015 15:36:21 +0000 (16:36 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 16 Jul 2015 21:02:55 +0000 (22:02 +0100)
commit8019ff6cfc0440415fcfb6352c58c3951e6ab053
tree17f86a5181cc8e7d5b2157a352acbec1071a88c4
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754
regmap: Use reg_sequence for multi_reg_write / register_patch

Separate the functionality using sequences of register writes from the
functions that take register defaults. This change renames the arguments
in order to support the extension of reg_sequence to take an optional
delay to be applied after any given register in a sequence is written.
This avoids adding an int to all register defaults, which could
substantially increase memory usage for regmaps with large default tables.

This also updates all the clients of multi_reg_write/register_patch.

Signed-off-by: Nariman Poushin <nariman@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
27 files changed:
drivers/base/regmap/internal.h
drivers/base/regmap/regmap.c
drivers/gpu/drm/i2c/adv7511.c
drivers/input/misc/drv260x.c
drivers/input/misc/drv2665.c
drivers/input/misc/drv2667.c
drivers/mfd/arizona-core.c
drivers/mfd/twl6040.c
drivers/mfd/wm5102-tables.c
drivers/mfd/wm5110-tables.c
drivers/mfd/wm8994-core.c
drivers/mfd/wm8997-tables.c
include/linux/regmap.h
sound/soc/codecs/arizona.c
sound/soc/codecs/cs35l32.c
sound/soc/codecs/cs42l52.c
sound/soc/codecs/da7210.c
sound/soc/codecs/rt5640.c
sound/soc/codecs/rt5645.c
sound/soc/codecs/rt5651.c
sound/soc/codecs/rt5670.c
sound/soc/codecs/rt5677.c
sound/soc/codecs/tlv320aic3x.c
sound/soc/codecs/wm2200.c
sound/soc/codecs/wm5100.c
sound/soc/codecs/wm8962.c
sound/soc/codecs/wm8993.c