soc: mediatek: pwrap: Use readx_poll_timeout() instead of custom function
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 17 May 2022 10:47:08 +0000 (12:47 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Tue, 7 Jun 2022 16:25:14 +0000 (18:25 +0200)
commit18c7deca2b812537aa4d928900e208710f1300aa
tree9dc5aa4dd1a05789b3131804ff636a1e09c663b3
parentf2906aa863381afb0015a9eb7fefad885d4e5a56
soc: mediatek: pwrap: Use readx_poll_timeout() instead of custom function

Function pwrap_wait_for_state() is a function that polls an address
through a helper function, but this is the very same operation that
the readx_poll_timeout macro means to do.
Convert all instances of calling pwrap_wait_for_state() to instead
use the read_poll_timeout macro.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Tested-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Link: https://lore.kernel.org/r/20220517104712.24579-2-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-pmic-wrap.c