[PATCH] mtd: nand: mtk-ecc: drop inline from mtk_ecc_wait_idle()

From: Pengpeng Hou

Date: Wed Dec 02 2026 - 23:06:47 EST


mtk_ecc_wait_idle() is local to this translation unit. Drop the
inline hint and let the compiler decide whether to inline the poll.

Suggested-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>
Signed-off-by: Pengpeng Hou <pengpeng@xxxxxxxxxxx>
---
Follow-up to Miquel's request after the idle-timeout fix:
https://lore-kernel.gnuweeb.org/linux-mtd/87se6dmjrx.fsf@xxxxxxxxxxx/
Patch preparation and review: Codex (Assisted-by: gpt 5).

drivers/mtd/nand/ecc-mtk.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/ecc-mtk.c b/drivers/mtd/nand/ecc-mtk.c
index f26097dab049..b6ecc95185ee 100644
--- a/drivers/mtd/nand/ecc-mtk.c
+++ b/drivers/mtd/nand/ecc-mtk.c
@@ -123,8 +123,7 @@
[ECC_DECIRQ_STA] = 0x144,
};

-static inline int mtk_ecc_wait_idle(struct mtk_ecc *ecc,
- enum mtk_ecc_operation op)
+static int mtk_ecc_wait_idle(struct mtk_ecc *ecc, enum mtk_ecc_operation op)
{
struct device *dev = ecc->dev;
u32 val;

base-commit: b3b86fbd14b98c6a1786308ba0ecd666827dcb0e