mmc: mmci: Break out a helper function
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 16 Jun 2023 20:42:27 +0000 (22:42 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 19 Jun 2023 11:14:26 +0000 (13:14 +0200)
commit4711c6ab585ea627560a4878917aeaa1178878c2
tree124bdad3fa3b3afda74b009f2eda347ad941205d
parentddb5a92da5f32779958303716429d50a46c3177d
mmc: mmci: Break out a helper function

These four lines clearing, masking and resetting the state
of the busy detect state machine is repeated five times in
the code so break this out to a small helper so things are
easier to read.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230405-pl180-busydetect-fix-v7-9-69a7164f2a61@linaro.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mmci.c