[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191103005906.17112-1-ramakumar.kanasundara@gmail.com>
Date: Sat, 2 Nov 2019 19:59:06 -0500
From: rama <ramakumar.kanasundara@...il.com>
To: gregkh@...uxfoundation.org
Cc: jeremy@...zel.net, nishadkamdar@...il.com,
linux-kernel@...r.kernel.org, devel@...verdev.osuosl.org,
rama <ramakumar.kanasundara@...il.com>
Subject: [PATCH] FBTFT: fb_sh: Changed udelay() to usleep_range() based on the Document, Documentation/timers/timers-howto.rst Excerpt from the document: -SLEEPING FOR ~USECS OR SMALL MSECS ( 10us - 20ms): * Use usleep_range
---
drivers/staging/fbtft/fb_agm1264k-fl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/fbtft/fb_agm1264k-fl.c b/drivers/staging/fbtft/fb_agm1264k-fl.c
index eeeeec97ad27..471a145e3c00 100644
--- a/drivers/staging/fbtft/fb_agm1264k-fl.c
+++ b/drivers/staging/fbtft/fb_agm1264k-fl.c
@@ -85,7 +85,7 @@ static void reset(struct fbtft_par *par)
dev_dbg(par->info->device, "%s()\n", __func__);
gpiod_set_value(par->gpio.reset, 0);
- udelay(20);
+ usleep_range(20,20);
gpiod_set_value(par->gpio.reset, 1);
mdelay(120);
}
--
2.17.1
Powered by blists - more mailing lists