]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: xgifb: Replace udelay, mdelay functions with usleep_range
authorNavya Sri Nizamkari <navyasri.tech@gmail.com>
Thu, 22 Oct 2015 14:51:22 +0000 (20:21 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:11:30 +0000 (19:11 -0700)
commit10f6006a872103180164f95d3430fdd39c0d6f6c
treedfd0ecc92574f2f2ae299611c607037334b0b004
parent1449916170d4c1eea58570b085646f864008a73a
Staging: xgifb: Replace udelay, mdelay functions with usleep_range

This patch fixes the checkpatch.pl check:

CHECK: usleep_range is preferred over udelay.

Replace mdelay with usleep_range function too.
Add 1 millisecond to the delay time to get a
reasonable upper limit which saves one wakeup call.
Do same throughout the file.

Signed-off-by: Navya Sri Nizamkari <navyasri.tech@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/vb_init.c