regmap: Apply optional delay in multi_reg_write/register_patch
authorNariman Poushin <nariman@opensource.wolfsonmicro.com>
Thu, 16 Jul 2015 15:36:22 +0000 (16:36 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 16 Jul 2015 21:02:55 +0000 (22:02 +0100)
commit2de9d6006c190bb0f706e8404de94cd94293801f
treeef9cb9b8a86de024834940a8aedd77db82c70077
parent8019ff6cfc0440415fcfb6352c58c3951e6ab053
regmap: Apply optional delay in multi_reg_write/register_patch

Add an optional delay_us field in reg_sequence to allow the client to
specify a delay (in microseconds) to be applied after any given write
in a sequence of writes.

We treat a delay in a sequence the same way we treat a page change as
they are logically similar in that you can coalesce all write before
a delay (in the same way you can coalesce all writes before a page
change is needed)

Signed-off-by: Nariman Poushin <nariman@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c
include/linux/regmap.h