]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
regmap: add iopoll-like polling macro for regmap_field
authorChen-Yu Tsai <wens@csie.org>
Fri, 29 Sep 2017 08:23:01 +0000 (16:23 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 4 Oct 2017 10:46:32 +0000 (11:46 +0100)
commit667063acb81931e2f8fd0cb91df9fcccad131d9a
treef1532a383fdecb60c40673771c29765562676d05
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
regmap: add iopoll-like polling macro for regmap_field

This patch adds a macro regmap_field_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_field_read.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/regmap.h