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 <[email protected]> --- 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
