From: Fabrizio Benedetti <fabrizio.benedetti.82@gmail.com>
To: gregkh@linuxfoundation.org
Cc: linux-iio@vger.kernel.org
Subject: [PATCH] staging: fbtft: fb_agm1264k-fl.c: Replaced udelay by usleep_range
Date: Fri, 24 Jul 2020 12:09:07 +0200 [thread overview]
Message-ID: <20200724100907.GA8977@fbenedet-HP> (raw)
This patch replace udelay with usleep_range
according to the Documentation/timers/timers-howto.txt .
The usleep_range have a range that is >= of udelay.
Signed-off-by: Fabrizio Benedetti <fabrizio.benedetti.82@gmail.com>
---
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..4a67a660bb17 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, 25);
gpiod_set_value(par->gpio.reset, 1);
mdelay(120);
}
--
2.17.1
next reply other threads:[~2020-07-24 10:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-24 10:09 Fabrizio Benedetti [this message]
2020-07-24 13:24 ` [PATCH] staging: fbtft: fb_agm1264k-fl.c: Replaced udelay by usleep_range Greg KH
2020-07-26 8:06 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200724100907.GA8977@fbenedet-HP \
--to=fabrizio.benedetti.82@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-iio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox