]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1c0e2eb7b15287eb853809a411a8118f312c053a
tree9dc5aa4dd1a05789b3131804ff636a1e09c663b3
parentcf1710d1388cf5bd81996b258399c4907d27006e
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