staging: wfx: use more power-efficient sleep for reset
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Tue, 11 Feb 2020 10:35:04 +0000 (11:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 19:15:29 +0000 (11:15 -0800)
commitd2bdc492916046da4abe07ec2373bd962f2224e9
treeda3e777822d9e4e98fe48d3e2210bf41c13483ea
parent40a97d55a6b7f52df0a4ff59b860a4d4c2a0283a
staging: wfx: use more power-efficient sleep for reset

Replace udelay() with usleep_range() as all uses are in a sleepable context.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Link: https://lore.kernel.org/r/59e1e4e5bd80c1879ef36eaa59916e47005dbb04.1581416843.git.mirq-linux@rere.qmqm.pl
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/bh.c
drivers/staging/wfx/bus_spi.c
drivers/staging/wfx/hwio.c