[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260115084019.28574-1-chococookieman1@gmail.com>
Date: Thu, 15 Jan 2026 17:40:19 +0900
From: WooYoung Jeon <chococookieman1@...il.com>
To: Andy Shevchenko <andy@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: dri-devel@...ts.freedesktop.org,
linux-fbdev@...r.kernel.org,
linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org,
WooYoung Jeon <chococookieman1@...il.com>
Subject: [PATCH] staging: fbtft: replace udelay with usleep_range
In the fb_ra8875 driver, udelay(100) is used for delay which
causes busy-waiting. Replacing it with usleep_range(100, 120)
allows the CPU to sleep during the delay, improving system
resource efficiency.
This change was suggested by checkpatch.pl.
Signed-off-by: WooYoung Jeon <chococookieman1@...il.com>
---
drivers/staging/fbtft/fb_ra8875.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/fbtft/fb_ra8875.c b/drivers/staging/fbtft/fb_ra8875.c
index 0ab1de664..92c9e4e03 100644
--- a/drivers/staging/fbtft/fb_ra8875.c
+++ b/drivers/staging/fbtft/fb_ra8875.c
@@ -210,7 +210,7 @@ static void write_reg8_bus8(struct fbtft_par *par, int len, ...)
}
len--;
- udelay(100);
+ usleep_range(100, 120);
if (len) {
buf = (u8 *)par->buf;
--
2.43.0
Powered by blists - more mailing lists