[PATCH] staging: fbtft: fb_tinylcd: replace udelay with usleep_range

Subsystems: fbtft framebuffer drivers, staging subsystem, the rest

STALE164d

2 messages, 2 authors, 2026-02-19 · open the first message on its own page

[PATCH] staging: fbtft: fb_tinylcd: replace udelay with usleep_range

From: <hidden>
Date: 2026-02-18 18:15:41

From: Tomasz Unger <redacted>

Signed-off-by: Tomasz Unger <redacted>
---
 drivers/staging/fbtft/fb_tinylcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/fbtft/fb_tinylcd.c b/drivers/staging/fbtft/fb_tinylcd.c
index 9469248f2c50..89ee7b9d621e 100644
--- a/drivers/staging/fbtft/fb_tinylcd.c
+++ b/drivers/staging/fbtft/fb_tinylcd.c
@@ -41,7 +41,7 @@ static int init_display(struct fbtft_par *par)
 		       0x00, 0x35, 0x33, 0x00, 0x00, 0x00);
 	write_reg(par, MIPI_DCS_SET_PIXEL_FORMAT, 0x55);
 	write_reg(par, MIPI_DCS_EXIT_SLEEP_MODE);
-	udelay(250);
+	usleep_range(250, 275);
 	write_reg(par, MIPI_DCS_SET_DISPLAY_ON);
 
 	return 0;
-- 
2.53.0

Re: [PATCH] staging: fbtft: fb_tinylcd: replace udelay with usleep_range

From: Andy Shevchenko <hidden>
Date: 2026-02-19 07:30:34

On Wed, Feb 18, 2026 at 06:55:17PM +0100, tomasz.unger@yahoo.pl wrote:
From: Tomasz Unger <redacted>
NAK.


-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help