regmap: add iopoll-like polling macro
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 6 Jul 2016 14:19:41 +0000 (16:19 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 15 Jul 2016 12:44:22 +0000 (13:44 +0100)
commit08188ba8822163922e6b9c600095d21ce02f6a84
treed30bb357aa98e64e4d4991e9efa539c98311e08b
parent1a695a905c18548062509178b98bc91e67510864
regmap: add iopoll-like polling macro

This patch adds a macro regmap_read_poll_timeout that works similar
to the readx_poll_timeout defined in linux/iopoll.h, except that this
can also return the error value returned by a failed regmap_read.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/regmap.h