regmap: add regmap_read_poll_timeout() helper
authorNeil Armstrong <narmstrong@baylibre.com>
Thu, 22 Nov 2018 10:01:03 +0000 (11:01 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Sat, 24 Nov 2018 09:11:11 +0000 (14:41 +0530)
commitd13801ef1d14fe46f97630b56e01200b337dad6c
treedbe871d31bd3bf95d3bed37cf07379d09266d754
parentd821e5edfb8023dc01baa8e1fc0487485f313db2
regmap: add regmap_read_poll_timeout() helper

Add the regmap_read_poll_timeout() macro based on the Linux implementation
to simplify register polling with configurable timeout and sleep.

Tested-by: Jerome Brunet <jbrunet@baylibre.com>
Acked-by: Jagan Teki <jagan@openedev.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
include/regmap.h